From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Convert a Hex String to a Hex number?

How Do I Convert a Hex String to a Hex number?
 
example : String "FE" convert HEX FE
0 Kudos
Message 1 of 3
(3,662 Views)
one way would be:
 
Locals.MyNumber = Val("0x" + Locals.MyHexString)
 
 
Note that you can also make Locals.MyNumber display in hex by right clicking on it and going to Properties>>Numeric Format
 
 
 
Message 2 of 3
(3,647 Views)
Thank you very much, James .
0 Kudos
Message 3 of 3
(3,625 Views)