From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting an Ascii character to its hex value

I have one ascii character that I read from a serial port and I would like to use this value to set the position of a dial indicator.

 

I see that Labview 8.0 has a standard number to hexadecimal string function to convert ascii to its hexidecimal number but how do I convert the ascii value read into a double number for the dial indicator?

 

thanks

0 Kudos
Message 1 of 2
(2,151 Views)

String to Boolean Array followed by Index Array will give you an unsigned 8-bit integer representing the character in your string. You could convert that to a Double or jsut change the representation of the dial indicator to U8.

 

Lynn

0 Kudos
Message 2 of 2
(2,144 Views)