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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a hex string to the same hex number

I Need to convert the hex string "00601D248001" to the hex number 00 60 1D 24 80 01. Once it is hex I plan to insert the hex values into a string and save them into a file.

Thanks in advance for any assistance

Lonnie
0 Kudos
Message 1 of 3
(2,658 Views)
Getting each hex value can be done by converting 2 characters to a number (strings command).
Of course you need to be sure that the number of characters is even. Else, you have to test for that first.

However, if you need your result (as you post it) as a string, it might be easier just to insert the spaces.
0 Kudos
Message 2 of 3
(2,658 Views)
See below example :
0 Kudos
Message 3 of 3
(2,658 Views)