Incorrect Timestamp Using Write To Measurement File Express VI

Updated Aug 28, 2023

Reported In

Software

  • LabVIEW Full
  • LabVIEW Professional

Operating System

  • Windows

Issue Details

I'm converting my data into dynamic data and then writing it to Excel using the Write To Measurement File Express VI with timestamps enabled, but every timestamp after the first defaults to 1/1/1904 00:00:00.000. How do I get the correct timestamp written to my Excel file?

Solution

This is usually caused by Convert To Dynamic Data nodes. Double click the node and set the time to be "Now".



If the issue still persists, the issue could be coming from the Write to Measurement File.vi. Double click on the VI and click on 'Advanced' in the bottom right corner. Select "Absolute" to have the timestamp saved correctly.

Additional Information

This is actually expected behavior. Write to Measurement File gets the system time for the first call, but then uses the delta-T from the dynamic data type to compute later timestamps. If you convert a data type to dynamic without including a delta-T component then Write To Measurement File will not be able to incorporate accurate timestamps after the first call.