07-19-2005 01:52 AM
07-19-2005 09:31 AM
It would appear that the device you're trying to communicate with is doing something like VT100 terminal emultation. If you were to set Hyperterminal for regular ANSI instead of Auto Detect (or whatever), you would probably see the same thing. Doing full terminal emulation in LabVIEW is non-trivial. The VT100 spec contains a lot of escape characters that you would need to trap and then modify the received data. In your case, you would have to capture the string before it's displayed (i.e. with Scan String for Tokens), detect the escape code, determine which part of the data the code applies to, strip the escape code that from the text, write the data to the string indicator, then using property nodes (Text.SelStart, Text.SelEnd, Text.FontUnder) modify the text to get the underline. If that's all that you have to do, then it won't be to bad but if it's a full VT100 emulation, then there are also escape codes that determine row and column for data display, blinking, etc. If one the other hand, all you need to do is determine which text is underlined (presumably to determine which menu choice is active, you could simply strip the escape characters from the display and then take the next action based on which section of text the escape character precedes. So, for example, IND was the menu item active and you needed to get to the TEST menu, write three tab characters and a CR/LF.
I had a similar problem with testing a product that only had a VT100 interface. Instead of doing a LabVIEW implementaion, I bought a program called HyperAccess. Written by the same people as HyperAccess, it had VT100 emulation and a full set of ActiveX methods and properties so I used those instead of VISA.
12-07-2005 04:41 PM
12-07-2005 05:19 PM
05-12-2006 10:37 AM
Dennis, can u post that DLL with an example.
I actually want to bring the functionality of HyperAccess using ActiveX control in my Labview application.
By just using HyperAccess or Hyperterminal on VT100 or VT102 emulation, it works fine with other device. In hyperterminal or hyperaccess, same screen is continously displaying data received from other device along with commands typed and sent through the same screen. I want to bring same thing in my Labview application. So if u could help in this regard?
05-12-2006 11:41 AM
05-12-2006 12:48 PM
05-12-2006 12:56 PM