Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How Serial comm Send in Hex 2 bytes and Receive in Hex 20bytes

I have a gauge which has RS232 comm protocol.
 
I need to send 0x0A to the gauge in order to query the data. The data will be received in 20 bytes format.
 
I found the sample vi in Labview, Basic Serial Write an Read.vi.
Can someone tell me how to modify this sample vi for solving my problem?   
0 Kudos
Message 1 of 2
(3,214 Views)
All you need to do is right click on the string control in the example and select display HEX.

Hex is not other content. Only another way of displaying the same binary information.
ASCII is the normal way, /codes can be interesting and password display can only be used for that.

Another possibility  is to put a control of an array of bytes on the frontpanel, and convert that into a string and feed the string control with this value.
(you need to change the control into an indicator to get rid of the broken wires)

In the last version you can see what is happening.
and if you change the display format of the returned string you probably see the result.
greetings from the Netherlands
0 Kudos
Message 2 of 2
(3,212 Views)