Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview DAQmx start/stop - Do I need to reCreate Task?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 3
(95 Views)
Solution
Accepted by topic author rmp

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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(71 Views)

Thanks Santhosh,

 

That document is very helpful. Thanks for your help.

0 Kudos
Message 3 of 3
(63 Views)