Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Status of a cleared task

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(2,967 Views)
Solution
Accepted by topic author ilyak

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

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

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!

Gary P.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,943 Views)