LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read 1 sample at a time at sampling rate of 2k/s ?using multifunction Card 6052

I am using E series DAQ card 6052 for analog input.although their are some examples for analogin in Labview that are all have the setting like scans to read at a time =1000 .is this possible that I set Scans to read a time =1.and the data that has been read from buffer is exactly the same ,and how to sure that even one sample is not skipped?
0 Kudos
Message 1 of 2
(2,615 Views)
Hello:

This will not be possible since the Read Function will take more than 0.5 ms to execute and Windows might not get back to it for upto 10 ms. To read 2kS/s at 1 sample at a time, you would need to read 1 pt every 0.5 ms. This is just a limitation of the Windows operating system and the computer speed. You should be reading more like 200 samples at a time so your loop runs at about a rate of 10 times per second (100 ms loop rate). You can then run the array of 200 pts to a for loop and index the array so you get each data point individually if you need the data in that format. Hope this helps!

Sincerely,

Brooks B
Applications Engineering
National Instruments
Message 2 of 2
(2,615 Views)