How to Get a Timestamp into the TDMS File in DAQExpress?

Updated Oct 30, 2018

Reported In

Software

  • DAQExpress

Driver

  • NI-DAQmx

Issue Details

I want to know how to get the time stamp into the TDMS file in DAQExpress.

Solution

  • Use an Index array with a Waveform Properties to get the t0 and dt of the data.
  • Use a For Loop to get a timestamp per every sample by wiring the number of samples per channel in the DAQmx Read VI to the loop count of the For loop and multiply the loop iteration per dt and add (Timestamp) the result of the multiplication to t0.
  • Wire this result to a TDMS write VI in parallel to the one that is writing the data as show in the image below.

WAS THIS ARTICLE HELPFUL?

Not Helpful