LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous measurement with DAQ Assist Analog In?

I've got a DAQ Assist VI for analog in measurements set to continuous samples, with a rate of 20 Hz and samples set to 20.  This is in my main loop, and the output is connected to a waveform chart.  I'd like for it to continuously acquire and report data from the start of the program, but it seems to just report its buffer (20 samples) and then stop.  Is there a way to keep this VI reporting data?
0 Kudos
Message 1 of 5
(2,872 Views)

Hi Jeanius,

you have to run the DAQ Assist Vi in a loop. Can you show us your code? How do you make it now?

Mike 

Message 2 of 5
(2,869 Views)

Thanks for replying so quickly.

 

My DAQ Assist is in a loop, however, with further investigation, I found that the problem was that I hadn't set a timeout value for other event structures in the same loop.  Now, the problem has become that with a timeout value, I get errors regarding the read measurement file VI.  What can I put as a timeout event?

 

Attached is a basic example of my code.

0 Kudos
Message 3 of 5
(2,865 Views)

Hi Jeanius,

don´t use the DAQ in this way. Use two independent loops. One for the user input an one for the data acquisition. See also the shipped examples for continuous data measurement. Use the example finder.

 

Hope it helps.

Mike 

Message 4 of 5
(2,860 Views)
Ah, gotcha.  Thanks very much, I'll give this a shot.
0 Kudos
Message 5 of 5
(2,853 Views)