LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition doesn't stop?

I am new to LV and I'm trying to figure out how to make LV stop taking data. I have used the DAQ assistant to take 10000 Voltage samples at 1KHz. This seems like it should take only 10 Seconds worth of data. However, LV continues to take data well after the 10 Second mark. In fact, only after stopping the VI can I see that it has taken much more. Can anyone help me to understand why this is? Do I need to tell the VI to stop after it collects the data I need?
0 Kudos
Message 1 of 4
(2,783 Views)
If you have to stop the VI, then you wrote a program with a while loop and as long as that while loop is running, the DAQ Assistant is going to keep taking 10 seconds worth of data every time it is called. If you want something to run once, why would you put it in a while loop? Every programming language has a while loop and they all work the same way. This is nothing unique to LabVIEW.
0 Kudos
Message 2 of 4
(2,780 Views)
Thanks. I didn't realize that it was in a while loop. I am a fool.
0 Kudos
Message 3 of 4
(2,774 Views)

caballero

Don't be so hard on yourself. Beginning in LV can be difficult, it is quite unlike any other languages.

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 4
(2,765 Views)