NI-DAQmx Shows Incorrect Waveform dt and t0 Information

Updated Apr 2, 2024

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

  • I am reading analog data from a cDAQ in LabVIEW, but the waveform dt and t0 characteristics always show the default value. What causes this?
  • When I view NI-DAQmx waveform data in LabVIEW, dt is always 1.000000 and t0 is always 00:00:00 PM MM/DD/YYYY. How can I fix this?
  • When acquiring data from a voltage input C Series Module in LabVIEW, the waveform data appears like the below image.
image (3).png

Solution

The timestamp data in a NI-DAQmx waveform is based on the system clock, so this issue can occur for the following reasons:
  1. Incorrect LabVIEW code.
  2. Corrupt NI-DAQmx.
  3. Corrupt NI Measurement & Automation Explorer (MAX).

To resolve this issue, following the steps below:
  1. Ensure that the LabVIEW code does not initialize the waveform data with default values.
    • LabVIEW will automatically use a default dt of 1.000000 and t0 of 00:00:00 PM MM/DD/YYYY. Instead of initializing the array with a default element, ensure that the waveform array starts empty and is only populated with data from the DAQmx Read VI.
  2. It may be that the NI-DAQmx installation is corrupt. Using NI Package Manager, repair NI-DAQmx.
  3. If the above steps do not resolve the issue, repair NI MAX using NI Package Manager.

Additional Information

To understand how the t0 and dt values are calculated, refer to Accuracy of the Waveform Timestamp Returned by NI-DAQmx.