LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ANSI Character code conversion in LabVIEW

I'm converting an older program from VB6 to LabVIEW and I came across the ASC() function. The ASC() function in VB6 returns an Integer representing the character code corresponding to the first letter in a string. Does anybody know of a tool or a VI that does this? I was going to build one from scratch, but I'm sure someone has already done this.
 
0 Kudos
Message 1 of 3
(2,719 Views)

Maybe I'm not fully understanding the question, but couldn't you wire your string into the String to Byte Array function, then index off the first element of the resulting array, to get the numeric value corresponding to the first ASCII character in the string?

-D

Message 2 of 3
(2,710 Views)

Thanks Darren,

Yes, it was that simple.

0 Kudos
Message 3 of 3
(2,692 Views)