LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

express write EOL ?

hi

I am trying to write EOL by using write express... but Notepad (or Wordapd) shows one line with EOL characters as \0D\0A

I also tried CR and LF, same problem

see attached file

thanks for any help

n

0 Kudos
Message 1 of 10
(3,417 Views)

The hex values for CR and LF are 0D and 0A respectively, so this all seems to be working fine. 

 

Have you not considered using the standard write to file process? 

File Write.png

Download All
0 Kudos
Message 2 of 10
(3,350 Views)

EOL under DOS (and therefore also Windows) is CR AND LF (or 0xD, 0xA as ogk.zn pointed out). For Unix/Linux it is only LF and for Mac only CR, although with MacOSX, applications tend to often follow the Unix way, but LabVIEW still uses the Mac EOL mode.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 10
(3,335 Views)

hi

with standard write file it works ok... but with express is not.

try the vi (the indicator text is ok but when open with notepad is nt)..

I tried CR and LF, same problem

N

0 Kudos
Message 4 of 10
(3,313 Views)

Digging really far into the Write Measurment File express VI, there is a part of code that converts non-printable characters in the comments into slash codes.  So your CR LF changes into "\0D\0A".  So everything works as intended, it seems.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 10
(3,307 Views)

hi

thanks for the answer. so there is no way to make CR+LF in express write ?

i checked and the "simple" write performs correctly (from EOL), but the write express has some nice nifty functions I don't want to write myself (like incrementing filenames for instance...)

regards

0 Kudos
Message 6 of 10
(3,285 Views)

 


@nitad54448 wrote:

hi

thanks for the answer. so there is no way to make CR+LF in express write ?

i checked and the "simple" write performs correctly (from EOL), but the write express has some nice nifty functions I don't want to write myself (like incrementing filenames for instance...)

regards


 

 I opened up the Express VI by right clicking on it and selecting Open Front Panel.

 

The function should be creating CF&LF because at its heart, it uses an Array to Spreadsheet String to structure the data, which puts CR-LF at the ends of rows.

 

 

But I think what is changing is happening in CompatWriteText file where the Convert EOL? boolean gets passed down to and it either converts EOL characters or it doesn't.

0 Kudos
Message 7 of 10
(3,267 Views)

@RavensFan wrote:

 


@nitad54448 wrote:

hi

thanks for the answer. so there is no way to make CR+LF in express write ?

i checked and the "simple" write performs correctly (from EOL), but the write express has some nice nifty functions I don't want to write myself (like incrementing filenames for instance...)

regards


 

 I opened up the Express VI by right clicking on it and selecting Open Front Panel.

 

The function should be creating CF&LF because at its heart, it uses an Array to Spreadsheet String to structure the data, which puts CR-LF at the ends of rows.

 

 

But I think what is changing is happening in CompatWriteText file where the Convert EOL? boolean gets passed down to and it either converts EOL characters or it doesn't.


Look closely where the OP wired up the string.  They wired it to the Comment terminal.  That does not use teh Array To Spreadsheet String and follows a different (and really weird) path to a VI that changes non-printable charaters into \ codes.  This only applies to the Comment input.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 10
(3,254 Views)

@crossrulz wrote:
Look closely where the OP wired up the string.  They wired it to the Comment terminal.  That does not use teh Array To Spreadsheet String and follows a different (and really weird) path to a VI that changes non-printable charaters into \ codes.  This only applies to the Comment input.

I hadn't noticed that.

 

That explains a lot.  While it might be nice if the Express VI did exactly what he wanted it to, I really don't expect an Express VI to work properly when you use it in a way that it wasn't meant to be used.

0 Kudos
Message 9 of 10
(3,248 Views)

hi

I don't get it.. I want to write lines of comments ... so it should be possible to do so...

How can I pass a text to the signal input ?

thanks

 

0 Kudos
Message 10 of 10
(3,240 Views)