LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number in Hex and add 30h

Hi all,

how can i change a number in a hex-format and add 30hex that i get the right ascii-charakter?

for example: number:17---->Hex:11------>+30h-------->=41h--------->"A"

Thanks all

Thomas
0 Kudos
Message 1 of 5
(4,412 Views)
Hi,

You don't need to convertit to hex to add 0x30. That's just a matter of representation.
Check annexed vi.

Hope it helps,
Paulo
0 Kudos
Message 2 of 5
(4,399 Views)
No need to change anything : decimal, hex, ascii are all U8 numbers, only the display is different. See the attached vi, where the only conversion is the U8 to String (char) using a type cast function.
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 5
(4,395 Views)
That question was already answered here but here it is again.
0 Kudos
Message 4 of 5
(4,390 Views)
Instead of converting to hex, use decimal numbers. 30hex=48decimal. Add 48 to your number.
0 Kudos
Message 5 of 5
(4,381 Views)