LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cdaq start task required?

Solved!
Go to solution

In an app using cdaq 9172 and AI I have a setup subvi that sets up the timing and starts the tasks then in the while loop do some daq display and writes. I just noticed that the start DAQmx Start task.vi isn't required. It seems that the DAQmx Read works regardless of weather I start the task or not. Is this correct. You don't have to use the DAQmx start task.vi's?  

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

Very often, reading the Help....really helps:

 

Transitions the task to the running state to begin the measurement or generation. Using this VI is required for some applications and is optional for others.

If you do not use this VI, a measurement task starts automatically when the DAQmx Read VI runs. The autostart input of the DAQmx Write VI determines if a generation task starts automatically when the DAQmx Write VI runs.

If you do not use the DAQmx Start Task VI and the DAQmx Stop Task VI when you use the DAQmx Read VI or the DAQmx Write VI multiple times, such as in a loop, the task starts and stops repeatedly. Starting and stopping a task repeatedly reduces the performance of the application.

 

- out of the LV Help

 

Christian

Message 2 of 3
(2,785 Views)

I do read the help file quite a bit, but didn't do a good job here.

Thanks

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