07-29-2009 01:55 PM
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?
Solved! Go to Solution.
07-30-2009 09:47 AM
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
07-30-2009 09:54 AM
I do read the help file quite a bit, but didn't do a good job here.
Thanks