LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get time from 1D Waveform and log it into TDMS

Hey everybody. 

I am pretty new to LabVIEW, but I am currently building a program which should be able to log data from in all 15 voltage channels. The channels are accelerometers, thoug it is not important for the problem. 
My problem is I want to log data and later I will have to add more data from a GPS, why I use TDMS. 
I can manage to log all data with TDMS, but I lack a time colum (or time channel) in my TDMS. 
I have tried the get waveform components and the build waveform array to get time from the waveform. 
But the problem is, that my signal is a 1D waveform, and it must be a waveform DBL ? 
My sampling needs to be continous. 
Please, can someone help me with loggin the time as well? 
Thank you. 
Regards, Marck. 

0 Kudos
Message 1 of 3
(2,771 Views)

Hi Marck,

 

waveforms already include timing data (as t0 and dt).

As you save waveforms to TDMS those information will also be saved in the TDMS file.

Once you read that TDMS file you will get back the waveforms and can read thos t0/dt information too.

 

(There also is a WDTGetWaveformTimeArray function to create an array of timestamps…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,734 Views)

Thanks for the quick reply! 
I will look into it. 
Regards, 

Marck. 

0 Kudos
Message 3 of 3
(2,729 Views)