The LabVIEW waveform datatype consists of the following elements:
*The t0 property can be stored as a timestamp or a numeric. If t0 was originally stored as a numeric, the behavior described below does not apply.
If you pass a waveform to the TDMS Write VI, the resulting TDMS file will contain one waveform channel that contains all of the information listed above. If you attempt to plot this channel in the View or Report Windows in DIAdem, the x-axis will display relative values for the timestamps in the waveform. These values are computed using the wf_increment channel property, and they start at zero.
In order to display the timestamps as absolute values, e.g. 01.01.07 12:00:00, it is necessary to split the waveform channel into two separate channels, one for the time, and one for the amplitude. This can be accomplished in either DIAdem or LabVIEW.
DIAdem Approach - These steps have been automated in the script "WaveformAbsoluteTimestamp.VBS"
*By default, converting the waveform channel to a numeric channel will create dates starting at 1/1/0000 in the resulting time channel.
LabVIEW Approach - Refer to the modified shipping example "Cont Acq&Graph Voltage - Write Data with Time to File (TDMS).vi"
*It is not necessary to offset the timestamps in the time channel in LabVIEW - the TDMS Write VI automatically handles this for you.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.