This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How to Get Timestamps with NI-DAQmx in Python?

Updated Oct 26, 2020

Environment

Driver

  • NI-DAQmx

Programming Language

  • Python

How do I get timestamps with my data using NI-DAQmx in Python?

There isn't a native way to do this, but you can use other Python libraries such as:
 
If the desired resolution timestamp can't be achieved, use the following formula to determine the elapsed time and incorporate that into your time measurements:
 
Elapsed Time = # of Samples / Sampling Rate