NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ "AutoDestroyTask" Event when using SubSequence Thread

Solved!
Go to solution

Greetings everyone.

 

We encountered a DAQmx Read error with an invalid task while running the test on TestStand. Upon further investigation using NI IO Trace, we observed that DAQAutoDestroyTask was triggered for some reason. Is there a specific reason why this event was triggered?

 

In TestStand, we are creating a task in the main sequence and setting the channel values in a subsequence “Thread” execution. Is it possible that the task will be AutoDestroyed if the thread ends?

0 Kudos
Message 1 of 3
(85 Views)

Sounds like a good explanation....

Have you tried running the same sequence with in the same thread?

0 Kudos
Message 2 of 3
(83 Views)
Solution
Accepted by ramsinghsivaramkumar

This issue has been resolved once we changed DAQmx Create Task (VI) with auto cleanup = FALSE. 😊

The DAQAutoDestroy won’t trigger again and only remains the proper DAQDestroy once the relevant sequence executed. Never expected the root cause was come from there.

0 Kudos
Message 3 of 3
(42 Views)