01-24-2014 02:09 PM
01-24-2014 02:13 PM
The NI-VISA VIs work very well for this.
01-24-2014 03:06 PM
@aderogba wrote:
Please is there a way to monitor RS232 communication traffic via VI?
Put a VISA Read inside of a loop. You will likely need to setup the port before the loop to make sure you have the right baud rate and other settings. Look in the LabVIEW Example Finder (Help->Find Examples) for Simple Serial.vi for a decent place to start.
01-27-2014 04:52 PM
What I am really looking for is somehting that works similiar to hardware loop back. Using only software, I need to be able to monitor what is being sent out as well as what is being received. Thanks.
01-27-2014 05:10 PM - edited 01-27-2014 05:14 PM
Ot sounds like you want to "see" what the serial port is doing while another program is using the port like a port sniffer?
If so LabView will not do that as LabView and Ni-VISA must have access to the serial port.
If another program is using the port NI-VISA and LabView will be locked out.
If you start a LabView porgram first NI-VISA will lock the port so no other program can access it.
I believe you need a program like PortMon part of the Sysinternals Suite from MS Technet.
01-27-2014 06:39 PM
Or NI IO Trace (NI-Spy), which is probably already installed on the machine...
http://www.ni.com/download/ni-io-trace-3.1.1/4285/en/ if it's not.