LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add time in mmddyy hh:mm:ss format to 2d DBL graph and to write to TDMS?

I had a memory problem. (See this thread) and so I changed by waveform to 2d DBL and now I need help in getting the data with time as it was before I changed to DBL.
0 Kudos
Message 1 of 3
(3,103 Views)
I think to get accurate acquisition timestamps you would have to retrieve the samples using the waveform datatype. Otherwise take a timestamp (Get date/time in seconds) on each iteration of the acquisition loop and deduct the number of samples read times the sample rate to get a approximate timestamp for the first sample in the dbl array.


Message Edited by andre.buurman@carya on 11-26-2007 12:19 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 3
(3,079 Views)
There's a bunch of properties you can set on a channel to include time information. They are documented on the "Set Waveform Properties" help page. Use TDMS Set Properties to set these, use the group name and channel name(s) you get out of TDMS Write after saving the DBl array. Or do it the other way round 🙂
thx
Herbert
0 Kudos
Message 3 of 3
(3,048 Views)