02-21-2011 07:05 AM
Hello. I have an instrument along with vendor software for acquiring data from the instrument on a PC through RS-232 serial communication. I would like to acquire the data in LabVIEW instead of through the vendor software. The vendor has given basically no support in helping me figure out how to communicate with the instrument - they only offer up their software as the only solution.
I'm trying to figure out a way that I can perform the data transfer with the vendor software and essentially figure out the format of the communications and the commands that are necessary to send to the instrument. The two things that seem like possibilities are the following:
(1) Use some type of "spy" or "monitor" software for serial ports to capture and display the communications occuring between the instrument and the PC/software.
(2) Connect the COM1 port of my PC (through which the vendor software would be communicating) back to another COM1 port on my computer and connect the insrument to a 3rd COM port on my computure. Use either hyperterminal or LabVIEW to read what the software and instrument are trying to transmit to each other by iteratively reading from one port and then writing that to the other port.
Anybody tried this before? Any suggestions on which might work or work better/easier, or other ideas? I do not even know the port settings required (baud, etc.), so I would need to guess at those if I tried option (2), above. I've never used any serial port "monitor" software before, so I don't really know what to use or how well it might work for option (1).
Thanks.
Solved! Go to Solution.
02-21-2011 09:51 AM
I frequently use a serial monitor package to revese engineer RS-232 protocols. Here is a link to one free package that I've used.
02-21-2011 10:00 AM
Portmon from Microsoft
02-22-2011 11:28 AM
Hi,
As was mentioned, Portmon from Microsoft looks like your best bet. Here is a link to where it can be downloaded:
http://technet.microsoft.com/en-us/sysinternals/bb896644
02-26-2011 05:42 PM
Portmon worked great. Thanks to all!
The only complication was that initially Portmon did not show any of my COM ports. The fix for this was the last post at the following discussion thread for sysinternals forum: http://forum.sysinternals.com/portmon-shows-no-ports_topic15200_post124552.html
I just had to disable the virtual COM ports under system hardware through Windows control panel.