LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I fix 0D and 0A getting replaced by 0D 0A in the written text file?

Solved!
Go to solution

Hi,

 

I am using LabVIEW 2009. Since I am currently using LabVIEW for my diploma thesis, I would really appreciate any and all help on my problem. So here is my problem:

The VI I wrote is constantly reading data off a VISA Serial Port and the resulting string is saved in a text file via "write to text file.vi". (The "write to binary file" produced additional data (mostly 00s) that I do not want to have in my data.) But when I open the text file and try to analyse the data each instance of 0A or 0D is replaced by 0D 0A. If the data is already 0D 0A this will not be touched.

 

Does anyone have a solution for this problem?

 

Thank you for taking the time to read my question....

0 Kudos
Message 1 of 5
(8,532 Views)

This is a conversion of the EOL (end-of-line) by your text editor. Hex 0D 0A is CRLF.

I think you should use a different editor, or propably you can tell your editor that this data is binary format.

 

Felix

Message 2 of 5
(8,520 Views)
Solution
Accepted by topic author Kriz337

What happens if you right-click the "write to text file" and uncheck "convert EOL"?

Message 3 of 5
(8,515 Views)

Thank you for your reply.

 

I will try that. I hope that you are right.

0 Kudos
Message 4 of 5
(8,508 Views)

altenbach, you are the man!

 

Works like a charm now! Thank you soooo much.

0 Kudos
Message 5 of 5
(8,504 Views)