Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Log the Data which is Being Read From or Written to the Serial Port?

Hardware: PXI/CompactPCI>>Controllers

Problem:
How can I log the data which is being read from or written to the serial port?

Solution:
There are several utilities available to log the data on the Serial Com Port. Below is a list of the common ones:

National Instruments Solution: NI-Spy.
NI Spy is an application that monitors, records, and displays National Instruments API calls made by applications. Use NI Spy to quickly locate and analyze any erroneous National Instruments API calls that your application makes, and to verify that the communication with your instrument is correct.

Note: Remember NI-Spy doesn't act like a terminal in any form, it only monitors and records data.

Note: NI-Spy cannot be installed separately. It comes bundled with various NI drivers. You are able to install the latest driver software which will install the latest version of NI Spy including NI-VISA, NI-488.2 and NI-CAN.

For more guidance on using NI-Spy please see KnowledgeBase 4P3FR2LQ: Performing a Good NI Spy Capture for Debugging/Troubleshooting.

3rd Party Products such as HyperTerminal, Tera Term and PuTTY.

HyperTerminal ships with the Microsoft Windows operating system up to Windows XP. This supports terminal emulation. HyperAccess which is comparable to HyperTerminal includes an ActiveX interface to allow platforms such as LabVIEW to utilize its functions.

Tera Term is an open source free software terminal emulator for Microsoft Windows. It also emulates different types of terminals. PuTTY has comparable features to Tera Term and HyperTerminal.

Due to these terminal emulation features the logs created by the 3d party products will also include escape characters. This knowledge of the escape characters are required when building LabVIEW applications which are communicating with devices which send escape characters.

Note: It should be noted the performance advantage LabVIEW has when compared with 3rd party products.

Related Links:
KnowledgeBase 4P3FR2LQ: Performing a Good NI Spy Capture for Debugging/Troubleshooting

Attachments:





Report Date: 01/23/2009
Last Updated: 01/28/2009
Document ID: 4TMFR7CX

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit