LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

limited sampling rate with multiple timed loops

I am trying to use two timed loops.  The first timed loop is supposed to acquire some analog inputs, average the values, and then display the average values on the Front Panel at a rate of 2 Hz.  When I want to acquire data I enter a second timed loop and try to acquire data at a rate of 50 Hz.  The second timed loop is designed to acquire 1 value and then append the data to a file.  During the 50 Hz acquisition I want the first timed loop to also run so that the Front Panel continues to refresh values at 2 Hz.
 
The problem I'm getting is that the second timed loop doesn't acquire and write data any faster than the first timed loop.  So in this case I'm limited to 2 Hz data acquisition when I want 50 Hz.
0 Kudos
Message 1 of 3
(2,587 Views)

Hi FRLFTE,

the second loop run not faster because both loops are in the same "big" while loop, so that the second loop has to wait till the first is ready.

Mike

0 Kudos
Message 2 of 3
(2,585 Views)
Mike,
 
Thanks for the help.  I deleted the outside While loop and it worked.
 
 
0 Kudos
Message 3 of 3
(2,555 Views)