LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read and write hex command to an instrument through a serial port

RS 232 communication with hex command
0 Kudos
Message 1 of 4
(2,816 Views)
I am not sure about your question.
An Hex command is nothing but a string with chars that are not always alphanumerics (under $20). To write/display such a string in LV, just right click the string control, then select "Hex display". Another way of manipulating such strings is the "\ code display" option, where control chars appear as \i chars.
Hope this helps !
If you have other problems with serial port communication don't hesitate to ask.
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,816 Views)
Helped me out of a similar situation, thanks!
0 Kudos
Message 3 of 4
(2,816 Views)
chilly charly wrote in news:506500000005000000F2D60100-
1079395200000@exchange.ni.com:

> I am not sure about your question.
> An Hex command is nothing but a string with chars that are not always
> alphanumerics (under $20). To write/display such a string in LV, just
> right click the string control, then select "Hex display". Another way
> of manipulating such strings is the "\ code display" option, where
> control chars appear as \i chars.
> Hope this helps !
> If you have other problems with serial port communication don't
> hesitate to ask.

And if the data exist as U8 array (array with unsigned 8 bit numbers) use
the "String To Byte Array" function.

--
Rolf
0 Kudos
Message 4 of 4
(2,816 Views)