Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Do you need "DAQmx start task" vi to read from a NI DAQ device (NI 9205)?

Solved!
Go to solution

I have a NI 9205, which I am using to get a waveform data. To get started quickly I used the DAQ assist Vi. The code below (FIGURE 1) is what the DAQ assist VI looked like when I convert it to LabVIEW code and did some minor adjustments.

When I looked online to see how to get data from DAQ devices, a lot of sources use the DAQmx Start Task in figure 2.

 

Does using DAQmx start VI make a different?  Does using DAQ assist in loop give you a lack of performance?    If yes, will figure one have a lack of performance too since it is basically the DAQ assist code?

FIGURE 1 

Download All
0 Kudos
Message 1 of 3
(5,793 Views)
Solution
Accepted by topic author sticyfinger

Hello sticyfinger,

 

From the Help for the Start Task function:

 

"If you do not use this VI, a measurement task starts automatically when the DAQmx Read VI runs. The autostart input of theDAQmx 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."

 

Hope that helps!

Tom L.
0 Kudos
Message 2 of 3
(5,780 Views)

thanks!!! 

0 Kudos
Message 3 of 3
(5,756 Views)