jdebuhr Posted August 21, 2006 Report Share Posted August 21, 2006 Hey all, I have created programs that will write and read data to and from the Com port on the PC. Now what I would Like to do if at all possible is create a LabVIEW Program that can 'SNIFF' or Monitor what is being transferring on the port. I have a program ( non-LabVIEW) that will be running and I just need to get the data off the port. I thought I could use ActiveX or similar but I am not sure. Any ideas? Quote Link to comment
Chris Davis Posted August 21, 2006 Report Share Posted August 21, 2006 Why reinvent the wheel, in this kind of case, I usually use Portmon, from sysinternals.com. I does a great job, and best of all, its free! Quote Link to comment
i2dx Posted August 21, 2006 Report Share Posted August 21, 2006 or you can split up the wires of the cable and connect Tx/Rx to an other COM-Port and use e.g. the terminal programm. I do this, if I assume that there is something wrong with the drivers and I relly need the data that come across the wire ... Quote Link to comment
Falevoz Y. Posted August 21, 2006 Report Share Posted August 21, 2006 I use aspycom! I'm very satisfied of it. It's free too. http://www.aspycom.fr.st/ Yann Quote Link to comment
jdebuhr Posted August 21, 2006 Author Report Share Posted August 21, 2006 Why reinvent the wheel, in this kind of case, I usually use Portmon, from sysinternals.com. I does a great job, and best of all, its free! I totally forgot about Portmon.. THANKS!!! Quote Link to comment
jdebuhr Posted August 23, 2006 Author Report Share Posted August 23, 2006 I totally forgot about Portmon.. THANKS!!! Okay, I captured the data with Portmon. problem is the length is shown in portmon at ASCII.. the data on the serial port is HEX I know what one command is for sure but is shows on portmon as .V.. if I take that and display it as hex in LV it is 0x2E 0x56 0x2E 0x2E. I know thw 3 '.' are different data. I thought that the log file would have the actual data.. Any way to use labview to convert that data to the correct hex? Okay, I captured the data with Portmon. problem is the length is shown in portmon at ASCII.. the data on the serial port is HEX I know what one command is for sure but is shows on portmon as .V.. if I take that and display it as hex in LV it is 0x2E 0x56 0x2E 0x2E. I know thw 3 '.' are different data. I thought that the log file would have the actual data.. Any way to use labview to convert that data to the correct hex? Nevermind, if I would open my eyes Iwould see the ASCII/ HEX Option.. LOL Quote Link to comment
Kevin Boronka Posted August 23, 2006 Report Share Posted August 23, 2006 Why reinvent the wheel, in this kind of case, I usually use Portmon, from sysinternals.com. I does a great job, and best of all, its free! sysinternals, the company which makes portmon, is now owned by microsoft, so I'd download the tools while they are still free. Quote Link to comment
Chris Davis Posted August 23, 2006 Report Share Posted August 23, 2006 Although the owner of sysinternals, claims in his blog that they will always be freely downloadable, it doesn't hurt to have a copy somewhere on disk, just in case... Quote Link to comment
crelf Posted August 23, 2006 Report Share Posted August 23, 2006 Although the owner of sysinternals, claims in his blog that they will always be freely downloadable, it doesn't hurt to have a copy somewhere on disk, just in case... From the blog: Microsoft Quote Link to comment
draco Posted August 30, 2007 Report Share Posted August 30, 2007 QUOTE(crelf @ Aug 23 2006, 08:35 PM) Is there a mirror somewhere already, just in case? here is a http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Portmon.mspx' target="_blank">link Quote Link to comment
Val Brown Posted August 31, 2007 Report Share Posted August 31, 2007 Thanks for the link. It's always good to have such tools "on hand", esp where Microsoft is involved. Quote Link to comment
serialeasy Posted February 22, 2008 Report Share Posted February 22, 2008 I use the Serial Com Port Monitor I think it is helpful Quote Link to comment
orko Posted February 22, 2008 Report Share Posted February 22, 2008 QUOTE(chrisdavis @ Aug 20 2006, 05:53 PM) Why reinvent the wheel, in this kind of case, I usually use http://www.sysinternals.com/utilities/portmon.html' target="_blank">Portmon, from sysinternals.com. Or use that forgotten little icon in your National Instruments start menu: NI Spy (only works if your COMM port programs are written in LV) I like portmon when I have it available, but there are times on the test floor where I don't have internet and forgot my USB stick in my other super-hero outfit. Quote Link to comment
Rolf Kalbermatter Posted February 23, 2008 Report Share Posted February 23, 2008 QUOTE(orko @ Feb 21 2008, 01:00 PM) Or use that forgotten little icon in your National Instruments start menu: NI Spy (only works if your COMM port programs are written in LV) No! This really works for any program that uses VISA to communicate with the port (serial, GPIB, and whatever). NI Spy in fact simply intercepts all VISA API calls and monitors them. Of course standard Windows applciations using directly the Windows Comm API can't be monitored in that way. Rolf KAlbermatter Quote Link to comment
orko Posted February 23, 2008 Report Share Posted February 23, 2008 QUOTE(rolfk @ Feb 22 2008, 03:23 AM) NI Spy in fact simply intercepts all VISA API calls and monitors them. Oops. Thanks for the correction, Rolf. This isn't the first time I've slipped up and equated VISA with LabVIEW. Bad orko... Quote Link to comment
Clio75 Posted March 2, 2008 Report Share Posted March 2, 2008 QUOTE(jdebuhr @ Aug 23 2006, 06:41 PM) Okay, I captured the data with Portmon. problem is the length is shown in portmon at ASCII.. the data on the serial port is HEX I know what one command is for sure but is shows on portmon as .V.. if I take that and display it as hex in LV it is 0x2E 0x56 0x2E 0x2E. I know thw 3 '.' are different data. I thought that the log file would have the actual data.. Any way to use labview to convert that data to the correct hex? Hello Working on something similar. And struggling to have 0xDF to be displayed as ascii "DF". I'm reading from serial interface (visa) from some of our equitment. And would like to read out the command that was send and received. a command is a 3 byte command like HEX(A0 00 00) I like to find a way to see this as Ascii(A0 00 00) Or convert it to ascii(Video L1 Out 1 Inp1). Any ides ??? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.