NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

LabVIEW as a Terminal Emulation (VT100) Program

VERSION 5

Created on: May 8, 2009 7:00 AM by Hillman - Last Modified:  Sep 12, 2009 8:09 AM by Hillman

Functional Description

The following VI (LabVIEW 8.6) shows how to communicate with a device which uses the VT100 ASCII character set and control sequences (also known as escape sequences/characters). For more background on this VI and for more information on VT100 emulation please see Knowledgebase 4TMENICX: How to use LabVIEW as a Terminal Emulation (VT100) Program to Emulate an Original Hardware Terminal?

 

As an overview the VI uses the VISA Serial functions which require the VISA driver to be installed. The code then reads and writes to the port asynchronously. The read loop awaits until the device has sent some data followed up by the escape character. To continue communicating with the device in a timely manner the device will require a reply to its escape character. If LabVIEW doesn't reply to the device, the device will have a pre-determined timeout before continuing its function.

 

Note: Before use configure the Resource Name correctly.

 

Caveats and Additional Notes

A terminal implementation described as VT100 typically does not implement the full set of escape sequences. If you did require a full terminal emulator then you could consider HyperAccess which includes an ActiveX interface. This can then be controlled from LabVIEW.

 

For other issues with Serial communication consult your connections, termination characters and LabVIEW VI timing. For more information please see KnowledgeBase 3VLAULIZ: Why Does My Serial Instrument Work in Hyperterminal But Not in LabVIEW or VISA Test Panels in MAX?

VT100_FP.PNG

VT100_BD.PNG

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document