LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write HEX values in Visa write in Labview NXG?

Solved!
Go to solution

I need to send HEX values to an instrument.  In the VISA test panel I can send \AA and send the hex values.  I have tried to send them in NXG but it always converts them to ASCI characters.  I have searched and for older versions of labview there is an option (right click) to select the string as HEX, but I can't find this option (right click) in NGX.  

 

I need to send AA 55 00 020801 F4 to the serial port.

 

 

0 Kudos
Message 1 of 4
(3,592 Views)

Hi,

 

          So if you send ascii do you get any errors? what exactly you want to do ? Can you please post a picture and give some more info.

0 Kudos
Message 2 of 4
(3,551 Views)
Solution
Accepted by uschris13

It doesn't look like NXG 2.1 (the version I have) has the option to display string constants or controls in hexadecimal format. However, you can display integers in hex, so you could get a similar result with an array of U8 set for hex display.

0 Kudos
Message 3 of 4
(3,541 Views)

Thank you, this worked.  The VI Write accepted the array of Hex Bytes and I was able to send the correct data.

0 Kudos
Message 4 of 4
(3,530 Views)