LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change the LabView default EOL from LF to CR/LF?

I'd like to get string constant containing CR/LFs as end of line-markers. LV seems to default to LF only. Can I change that?

Is there a VI that converts all EOLs within a string to a selected value? (I've written one myself but there may be faster ones and I'm quite looking for speed :-).

Thanks and cheers,
Daniel
0 Kudos
Message 1 of 3
(3,095 Views)
I believe that the EOL is system specific. On my Windows computer, the EOL string constant is a CR/LF. Or are you talking about the Write File and Read File Functions that have a convert eol option?

As far as a VI to convert, have you tried the Search and Replace function on the string pallette?
0 Kudos
Message 2 of 3
(3,095 Views)
Hi Dennis
I'm running on Windows, too. And so the EOL should default to CR/LF. But - when I use a string constant and let it have more then one line, the EOL becomes a \0A instead of a \0D\0A (in HEX). For now I've taken the MatchPattern VI to select LFs without CRs but as I have to keep the time consumption very low it would be nice to have the EOLs in the string constant set to CR/LF.
Cheers, Daniel
0 Kudos
Message 3 of 3
(3,095 Views)