LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing a rs232 sniffer using labview

Hello,

i want to create some kind of RS232 sniffer inside my LabView application to see the communication between the app itself and the device.
I know there are third party apps like binterm doing this job, but it would be great for me to include this function direclty into my labview program.

any idea how to start / begin that function ?

best regards

0 Kudos
Message 1 of 7
(5,038 Views)
Are you trying to monitor the RS-232 comms between a third party application (e.g. Hyperterminal) and the hardware?
 
I don't think that labview can do that because it needs to open the com port resource exclusively. So if Hyperterminal is running on COM1, labview would not be able open COM1.
 
On the other hand, ff you are developing the your own RS232 application then its pretty easy to monitor the strings being sent and received using VISA. Take a look at the labview example finder and search for examples using the keyword serial.
 
David
 
 
Message 2 of 7
(5,030 Views)
Hello,

i am developing an labview based application which uses RS232 to connect to my device.
My target is to show the RS232 communication inside the application....some kind of command log for the RS232 interface.

so back to your question: no its not a third party application.

I have tried to search inside the examples, but havent found a matching entry.

Best regards
fp
0 Kudos
Message 3 of 7
(5,009 Views)

Start >>> National Instruments >>> NI Spy

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 7
(5,005 Views)
Go to the search tab in the example finder and type 'serial'.
Message 5 of 7
(4,999 Views)
This is a screen shot of the VIs listed in Example Finder
 
 
You will need to know your serial transmission parameters such as baud rate, data bits, start bit, stop bits and parity. This is done using VISA Configure serial port. Watch out for the termination character truncating any data you send of receive. The termination character can be ignored if required.
 
Ben's hint is to say that NI Spy could be used to monitor any serial comms made over the NI API. Thanks Ben hadn't thought of that.
 
What version of labview are you using?
 
David

Message Edited by David Crawford on 09-13-2006 02:33 PM

Message 6 of 7
(4,992 Views)
Hello again,

what a pity...it was a translation fault why i got no hits inside the search of LV.
Thank you all for the hints & tips, im going to test it in the next days.

@ David: im using LV Version 8

Best regards
fp
0 Kudos
Message 7 of 7
(4,975 Views)