LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System time in Write TO Measurement File

where in the front panol I should change?

It is not clear to me in the thread.

thanks

wei shen
0 Kudos
Message 11 of 17
(1,083 Views)
There is no place on the front panel you should change. I don't understand where you got that idea. The suggestion was to replace the Write to Measurement File with Export Waveforms to Spreadsheet File. That is block diagram work.
0 Kudos
Message 12 of 17
(1,076 Views)

Thanks

 

But, I constantly got an error here.

Would you know what is the cause?

 

Thanks

 

wei shen
0 Kudos
Message 13 of 17
(1,068 Views)
Thats not an error. It's just aking you if you want to replace the file. If you want to append, you need to specify that.

Note that the export waveforms is not a direct replacement. You may have to do some additional progamming that the Express VI was doing for you.
0 Kudos
Message 14 of 17
(1,065 Views)

Got it.

Yet, I did not find the option for formating the output time format.

Here is my code. Would you take a look at it?

Thanks

 

 

wei shen
Download All
0 Kudos
Message 15 of 17
(1,041 Views)

There is no option to change the format of the date/time stamp. You would have look on the block diagram to see how it's formatted. I don't know if there is a windows setting that it follows.

0 Kudos
Message 16 of 17
(1,034 Views)

The subVI called Waveform Time to Date Time String is what defines the format of the date string.  In there, it uses a function called Get Date/Time String to format the date and the time.  It is set to use the Short Date format as defined in your operating system.

 

If you want to use a different date format, then you need to either change it in your OS, or not use this subVI.  Create your own subVI that converts the timestamp to the date string.

 

As for the extra blank line, there is a CRLF being put into each line.  When it is written to the file up near the top of the VI, a True is wired to the Convert EOL to current platform.  I would try changing that to a False.  But first you might want to see what bytes are actually being put into the file, is it multiple carriage returns and line feeds, or just one of each.

0 Kudos
Message 17 of 17
(1,029 Views)