LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ and timed loop

Hi,
I have a question about DAQ and timed loop. I used timed loop while acquiring data. I need timed loop since I have tvo more loops in my application and ı need give some priority to them.
Data acquisition should have a high priority. But the example codes about DAQ always use wlile loop. Is this wrong to use timed loop in DAQ application, or there is a unexpected result about
this usage.
0 Kudos
Message 1 of 2
(2,207 Views)
You could use timed loops in Data acquisition operations as well
 
But, one thing you will have to watch is the 'number of samples per channel' terminal of DAQmx Read function.
Suppose you have rate as 1000 samples /sec, in your DAQmx timing vi
In continuous acquisition, if you specify number of samples per channel as 500, instead of performing 2 iterations / sec to get your 1000 samples as your nor mal while loop would, your Timed loop will run for 1 sec and you will get an error that all samples could not be acquired
 
 
 
 
 
0 Kudos
Message 2 of 2
(2,204 Views)