LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hex number to string

How can i covnert a hex number to string without getting that 30 at the beginnig.
I need to send the hexnumber 010F to the serial port, how can i make it? when i try it i always seem to end up with 3031 3046 when i look at the resaulting sting in hex-view.
0 Kudos
Message 1 of 2
(2,748 Views)
30313046 is the hex representation of 010F written not as the binary number but as readable characters.

What you need to do is have the string control/constant set to hex display and then input 010F. If you are generating the number in some other way, if e.g. it's an integer just use the type cast function to convert the integer to the binary string you need to send.
0 Kudos
Message 2 of 2
(2,748 Views)