05-20-2025 04:30 PM
Hi folks,
I'd like to be able to call DAQmx Timing while I'm collecting data. I know I can't call this while in a DAQmx read loop. But I can't figure out if I can DAQmx Stop Task, DAQmx Timing and DAQmx Start... or do I need to:
- DAQmx stop, DAQmx Clear
- DAQmx Create Task
- DAQmx Timing
- DAQmx Start Task
I think I'm getting myself confused in various states between these two modes, and getting errors. Anyone know which is correct?
Solved! Go to Solution.
05-21-2025 04:48 AM
The DAQmx Task state model describes the state machine of the Task,
https://www.ni.com/docs/en-US/bundle/ni-daqmx/page/taskstatemodel.html
In short, you don't need to clear/create task, once created, ensure that the task is not running when attempting to configure timing.
05-21-2025 06:36 AM
Thanks Santhosh,
That document is very helpful. Thanks for your help.