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,499 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,492 Views)