LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access timestamp in Read LVM file express VI?

I have a bunch of data saved in .lvm files with headers for each data segment written.  The headers each contain a timestamp, which I can see in the file.  How can I access that timestamp for each data segment using the Read LVM express VI? 

Thanks
Mike
0 Kudos
Message 1 of 4
(3,298 Views)

Hi Mike,

In the attached VI, i am obtaining the headers "indirectly" by reading the plot names( using property nodes) of graph which displays your Lvm data.

Hope this helps

Regards

Dev

 

 

0 Kudos
Message 2 of 4
(3,295 Views)
An easy way to get the timestamp is to read in the data you want the timestamp for, convert to a waveform data type, and then just read the timestamp (t0).  The attached image shows this process.  If you read in all your data, you will need to wire the index input of the index array primitive to the correct value (default is zero).
0 Kudos
Message 3 of 4
(3,287 Views)
Just in case anyone needs to refer back to this post, I wanted to post my ultimate resolution to the problem.  Neither of the proposed solutions worked directly.  I ended up having to convert to a waveform, as one of the responses suggested, and then get the waveform attribute "NI_ExpTimeStamp".  The t0 for the waveform was always 0. 

Also, despite having selected relative time stamps in the Read LVM vi, I get absolute timestamps and have to subtract out the attribute "NI_ExpStartTimeStamp" to get a relative timestamp.

It seems like there ought to be an output directly from the Read LVM express vi to get the timestamp for a data segment.

-Mike
Message 4 of 4
(3,269 Views)