NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand's Serial Number

I have a vi in Teststand that reads data over a serial port.  The data is binary.  In that data is the UUT's Serial number.  For reasons unknow I can convert the serial data to hex but NOT decimal.  Rather than waste a ton of time trying to figure out why, I thought I'd just convert the sn typed in by the user in Teststand ( stored in: runstate.caller.locals.uut.serialnumber) to HEX.  Then do the comparison.  How??  Isn't TS serial numb a string??  When I tried val( runstate.caller.locals.uut.serialnumber) it gave me an error.

 

 

Thanks,

Clint

Message 1 of 3
(3,316 Views)

if you are trying to convert a hex number without the hex prefix, you can add it yourself, such as:

 

val("0x" +  runstate.caller.locals.uut.serialnumber)

 

 

0 Kudos
Message 2 of 3
(3,312 Views)
Thanks.  I'll give that a try.
0 Kudos
Message 3 of 3
(3,281 Views)