04-17-2009 03:42 PM
04-17-2009 04:02 PM
I'm not sure why you are having problems with these two values, as I think you should be able to store 1k samples in the buffer before being consumed by your program.
There is no real correlation between your sample rate and the number of samples to read. If you are setup to read samples continuously, then the DAQmx Read VI would take 1 seconds to read 1k samples at a rate of 1khz. It would take 0.5 seconds to read 500 samples at a rate of 1khz.
A lot of my applications involve "slow" DAQ rates. I tend to sample at 100hz, 50 samples at a time, and then have my samples averaged so that the numbers that are saved are 2hz.
04-17-2009 04:11 PM
04-20-2009 01:06 PM
This article provides additional information about buffered acquisitions and what can be done to make them more efficient:
http://digital.ni.com/public.nsf/allkb/7AD4854943BF344186256D6500807935
10-25-2010 12:58 PM
Hi, the link to the article doesn't work anymore - is there another link to it? Maybe it's changed since then.
Thanks, Andrea
02-18-2015 05:34 PM
Hi, I am trying to do the same averaged sampling as you mentioned in your comment. I understand how to set up the sampling rate and size but how did you average all of the data for it to be reported?
Thanks!
02-18-2015 05:53 PM
Using any of the provided averaging functions, or the simplest way is simply to use the Sum Array function then divide by the Array Size output.