11-03-2010 07:36 PM
Hello:
I use DAQmxClearTask to clear some specific task.
Is there a way to know that a task was cleared already using functions from NI-DAQmx library?
Thank you,
-Ilya.
Solved! Go to Solution.
11-04-2010 07:23 AM
I think that any operation on a cleared task would result in an error. So just do anything like reading from a property node and check the error code.
Felix
11-04-2010 11:13 AM
Hi ilyak-
Felix is correct. If you try to use a DAQmx function like a DAQmx Read on a cleared task, you will get an error indicating that the task is invalid.
Have a great day!