Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

When a task is done, what state is it in?

 I've reviewed the task state model for DAQmx:

 

http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

 

but I still have a question: If I start a finite acquisition, and it runs to completion, but I haven't done anything else to it, which box is it in in that state diagram?  A lot of places in the docs say that you should explicitly stop the task after it has completed.  This leads me to beleive that even if the task is done (i.e. DAQmxIsTaskDone() returns true), it remains in the "Running" state until you stop it (or abort it).  Is that correct?

 

Thanks for any help you can lend,

Adam

 

 

0 Kudos
Message 1 of 2
(3,778 Views)

Hello,

If you don't clear or abort the task the state will be commited right after you finished the application. And basically yes, the state will be running, but if you alreado collected all the data will be running but doing nothing.

0 Kudos
Message 2 of 2
(3,709 Views)