LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dos2unix VI?

Hi all, I don't even know how to search for this sort of thing, but I haven't been able to find anything yet...

Here's the deal.  I'm running LV8 on a dos machine and generating a txt file.  When I open that file on linux machines, there's some weird extra characters (probably line feeds or cairrage returns or something) that show up.

If I use the 'dos2unix' command, they go away and the file looks normal.  can someone please tell me how to do this using labview?  I would assume I can do this somehow using the linefeed character, but I just don't know how.

here's a brief bit of infor on dos2unix
dos2unix is filter used to convert plain texts from DOS (CR/LF) format to UNIX format (LF) and vice versa. Aditionaly it can also handle files in Macintosh format (CR) and convert them into other formats.


thanks
-z
0 Kudos
Message 1 of 3
(2,898 Views)
I believe you can right click the write vi and uncheck the convert EOL
 
-James
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 2 of 3
(2,892 Views)
I'm was using the 'Format into File' function:

I shhould have read it closer:


This function converts new lines, or \n, in the format string into the platform-specific end-of-line character, for example, CR/LF on Windows, CR on Mac OS, and LF on Linux. If you do not want to convert the end-of-line character, use the Format Into String function and wire the resulting string output to the data input of the Write File function and set convert eol to FALSE.

thanks
-Z
0 Kudos
Message 3 of 3
(2,880 Views)