LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to acquire data for some specified time..???

Dear All,
I m sending a vi by attachment. plz look into this and kindly let me know how to decide the time span one wants to acquire the data for. If I want to take the data for say 2 sec., suggest how to do that. This I have to do in single iteration. No while loop should be used. Plz help me in this regard. I have been facing this problem always with my all developments.

regards.

GNS
0 Kudos
Message 1 of 3
(2,767 Views)
You can do it the same way AI read calculates it's timeout (which you could also use by the way); by choosing a number of scans (given to AI config) and a sample frequence (given to AI start) that will result in the total sample time you want.
0 Kudos
Message 2 of 3
(2,767 Views)
GNS

From your program, all you need to do is add a control that will allow you so specify the time you want to acquire data. Then multiply this value by the 'Scan Rate' which is currently at 40000. This will give you the total number of samples to acquire. (You will also need to multiply by the number of channels if you are acquiring from more than one) Then send this value to the 'Buffer Size' node on 'AI Config'.

Let me know if you have further questions.

Brian
0 Kudos
Message 3 of 3
(2,767 Views)