LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to take characters to hex then the resulting hex to a text file?

Hey,
 
I'm trying to take say a the word alpha and convert it into hex (616C 7068 61)then write the hex values to a text file. When I use a stringol with hex display set and wite to a text file, it writes the word instead of the hex. How do I convert the text to hex text??
 
Thanks for your help...
0 Kudos
Message 1 of 3
(2,753 Views)
First convert the string to an unsigned byte array using String to Byte Array.  Then convert the unsigned byte array to a hex string array using Number to Hexidecimal String.  Then convert the string array to a string using Array to Spreadsheet String.  See attached:
 

Message Edited by tbob on 10-06-2005 06:25 PM

- tbob

Inventor of the WORM Global
Message 2 of 3
(2,750 Views)
Thanks, makes perfect sense.
0 Kudos
Message 3 of 3
(2,743 Views)