NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCII to Hex

Does TestStand 3.0 have a function that will convert an ASCII string into a hex string?
 
Tony
0 Kudos
Message 1 of 2
(2,965 Views)

I'm not sure exactly what you are trying to do, but to convert a character to a string that contains the hex formatted ascii character value, you could use something like:

str(asc(Locals.myCharacter), "0x%x")

You can also extract individual characters from a string with Mid(Locals.myString, Locals.index, 1)

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