Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

[NI-DAQmx] How to check data acquisition stopped in NI-DAQmx?

DAQ_Check() second (out) parameter returns an indication of whether the data acquisition has completed.
How the same checking can be done in NI_DAQmx?
0 Kudos
Message 1 of 3
(3,133 Views)
DAQ_Check() also returns the number of samles acquired. Also it can return some error like an overFlowError or an overRunError. How all these things done using NIDAQmx driver?
 
0 Kudos
Message 2 of 3
(3,127 Views)
Hi Praveenda,

In DAQmx, the property that you want to use is DAQmxGetTaskComplete(). This will let you know if the task is finished with a boolean value. The DAQmx read function itself will return the error code which is named status. This DAQmxGetErrorString() function can be used to convert the int32 from the status of the DAQmx read function into a meaningful error message. The NI-DAQmx C Reference Help can provide you with more details. In Windows it is located under Start » Programs » National Instruments » NI-DAQ » NI-DAQmx C Reference Help.

Regards,
Kent
Applications Engineer
0 Kudos
Message 3 of 3
(3,086 Views)