LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we place Analog in Read(AI-READ) Vi inside the while loop for high sample rate like 22ks/s?

I am using E-series Card for data acquisition.My requirement is to sample the channel, and check the 10 samples for certain condition.both at a time.What should be done can we place the AI-READ vi inside for or while loop for this purpose?
0 Kudos
Message 1 of 3
(2,684 Views)
Hello,
Yes, you can include the AI Read.vi inside the while loop, you would just need to specify the number of scans to read for every iteration of the loop. Then, after AI Read.vi has read the data, you can do what ever kind of manipulation of the data you would like, before the next iteration of the loop. The one thing to watch out for is what ever manipulation of the data you do, be sure that it doesn't take to long whereas the buffer holding the data starts to back up. That can be checked by looking at the scan backlog output of the AI Read.vi, which will tell you how many scans have been acquired but haven't been read into your program.
Hope this helps!

Regards,
Steven B.
Applications Engineering, NI
0 Kudos
Message 2 of 3
(2,684 Views)
Thanks Steven B.The answer that you put on Exchange helped me a lot.
0 Kudos
Message 3 of 3
(2,684 Views)