01-30-2015 08:51 AM
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
02-03-2015 09:06 PM
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?
02-04-2015 02:12 AM - edited 02-04-2015 02:13 AM
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.
02-04-2015 12:53 PM
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
02-04-2015 01:03 PM
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.
02-05-2015 01:08 AM
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
02-05-2015 07:51 AM - edited 02-05-2015 08:03 AM
@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.
02-05-2015 08:36 AM
@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.
02-05-2015 10:38 AM
@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.
02-05-2015 12:56 PM
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