LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing text to a Measurement file - without data

I am using the express VI write measurement file to record test results. I do not like the express VI header and the date is incorrect in the header (why does it say year of 1903)?
When I start my test I want to write my own header.  To do this I am feeding the express VI through the comment input. It will not write without my feeding in data also.  So I am feeding in a bogus data (boolean1) to get it to take my header info.
 
Can I put input text to the express VI without needing to have data also?   I realize I can "make my own file handler" but then I loose the convenience of the VI and the fact that it auto increments the file name.  I prefer to keep the express but just want to be able to force some text to the file without inserting a bogus "1.00000" data at the beginning of the file.
I prefer to to have to index into the file to overwrite the bogus "1.0000" data either.
 
0 Kudos
Message 1 of 2
(2,500 Views)
The date in the LVM file is extracted from the t0 value of the input data.  Since your input data is a boolean, it gets coerced to a waveform with t0=0 and dt=1 with a single element of 1.00.  The epoch for the timestamp is January 1, 1904 midnight GMT.  In the US, with timezone difference, this gets translated to Dec 31, 1903 some time in the late evening.

It sounds like the only thing the Express VI is doing for you is autoindexing the file.  While you can turn the header off (choose no headers on the configuration page), you would probably be better off writing the data to the file yourself.  Autoindexing the file name is fairly easy using a shift register in a loop to keep track of the name index and checking for file size after each write to close-old/open-new file.  The Express VI was designed for numerical data, so does not work well with text.  Sorry...
0 Kudos
Message 2 of 2
(2,481 Views)