NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

hex string to number conversion Test Stand

In Test Stand 2.0 I am trying to convert a string in Hex format (e.g. "FF") into a numeric value. I have used the 'Val' function but it does not seem to convert Hex. Is there something I need to add to the 'Val' function to tell it that it is a Hex string?
 
 
0 Kudos
Message 1 of 2
(4,496 Views)

hi steve,

Prefix your string with "0x" eg Val("0x"+"FF")

regards

Ray Farmer

 

Regards
Ray Farmer
Message 2 of 2
(4,495 Views)