Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I log the activity of the COM port in LabVIEW?

I would like to ask how I can log the activity of the COM port in LabVIEW, all the vi's I have checked is on the string based, and what I want is to see the data activity in byte-based (e.g. 2c 6f 77 2e, two hexadecimal chars).
0 Kudos
Message 1 of 3
(3,268 Views)
You can simply convert the string to any data format you wish. In this case, U8 would work. Check out the format string vi's.
0 Kudos
Message 2 of 3
(3,268 Views)
Kwong,

To show a string in hex, right-click on the string control or indicator and choose Hex Display. This will then show you the representation of the string in Hex rather than ASCII.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(3,268 Views)