11-08-2024 02:04 AM
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?
Solved! Go to Solution.
11-08-2024 02:07 AM
Sounds like a good explanation....
Have you tried running the same sequence with in the same thread?
11-17-2024 05:18 PM
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.