LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

number to ascii

how can i convert a number to an ascii character?

david
0 Kudos
Message 1 of 4
(2,824 Views)
Hi David,

you have to use the Type Cast function to convert a decimal number to ASCII string.
I attach a simple example.

Good luck,

Alberto
Message 2 of 4
(2,824 Views)
If you want to convert U8 number N to the character which has the ASCII code equal to N (for example 65 -> "A") then you can use "Functions->String->String/Array/Path Conversion->Byte Array to String.vi".

If you want to convert number N to the string "N" (for example 65 -> "65") then you can use vis from "Functions->String->String/Number Conversion" or such function as "Functions->String->Format into String.vi"

Good luck.

Oleg Chutko.
Message 3 of 4
(2,824 Views)
Thanks a lot, you made stupid guy in Frankfurt/Germany lucky. The file made my day.
Greetings ALEX
0 Kudos
Message 4 of 4
(2,824 Views)