LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a String to a File in HEX Format.

I have a HEX value coming from my microcontroller in Hex form. The indicator display is in HEX mode. I want to write the string that I see in HEX mode to a text file. For example, if the indicator has 0C, I want to write 0C to the text file and be able to see 0C when I open the file in notepad. Can anyone assist me with this problem by writing a VI. I tried the "Writing a String to a File in Hex Format" from the knowledge base but it does not work.

Thank You
0 Kudos
Message 1 of 2
(3,387 Views)
You can use "Number to Hexadecimal String" VI which is under "All Functions"->"String"->"String/Number Conversion" if you use LabVIEW 7.1
I'm sure this VI is available in other versions of LabVIEW.

Input is your hexadecimal number and you can take the output and dump it into your text file. This will achieve the results you want.

BorisMoto
0 Kudos
Message 2 of 2
(3,379 Views)