Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read and write Hex(0x02 for example) word to serial port?

I would like to write and read Hex through a serial port. 0x02, 0x05 for example, how to write them through RS232 protocol? The point is that 02 and 05 do not have the related ASCII characters which i could handle them with VISA Read.vi and VISA Write.vi.
0 Kudos
Message 1 of 2
(4,763 Views)
If you are using LabVIEW, I assume you are using either a string control or constant and wiring it to the VISA Write.vi.  Perhaps the easiest way to be able write these values out is to write click on the string control or constant and choose the option "Hex Display".  Then all you need to do is type in 0205 and you should be good to go.

Logan S.
0 Kudos
Message 2 of 2
(4,758 Views)