10-03-2017 08:01 AM
Hey,
I've implemented a data acquisition application in Python 3.5 with pydaqmx (wrapper around nidaqmx 16.0). Currently, I'm reading analog inputs with a callback task which automatically registers every N samples. However, the only way I found to calculate the sample time stamps was to record the system time at every callback. Is there a way to get the sample time stamp from the nidaqmx itself?
The DAQ I'm using is USB-6210.
Thanks,
smomni
Solved! Go to Solution.
10-05-2017 07:07 AM
Hey Smommi,
I am not very experienced with the pydaqmx API, but I assume that it works similar as the C wrapper for the DAQmx driver.
Have a look at this knowledgebase where the steps you need to take are described:
How Do I Get a DAQmx Timestamp in LabWindowsTM/CVI?
http://digital.ni.com/public.nsf/allkb/354468202721D85D8625759F004B0357
I hope I could help,
Andreas