07-23-2015 10:07 AM
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
07-27-2015 03:21 PM
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.