Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

USB-6210, nidaqmx and time stamps

Solved!
Go to solution

USB-6210, nidaqmx and time stamps

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

0 Kudos
Message 1 of 2
(371 Views)
Solution
Accepted by topic author smomni
10-10-2017 10:14 PM

Re: USB-6210, nidaqmx and time stamps

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

Message 2 of 2
(327 Views)