10-30-2013 06:24 AM
I am having trouble with the Sample Rate and Samples per Channel. I need to read a high sample rate of 4800 Hz and read all these points. However the advice is that you should set samples per channel at 1/10th of the sample rate. However, if I do this I will only get 480 points where as I need 4800 points. My main aim is to acquire as many data points in one second as possible. When the Samples per Channel is set to 480 it acquires for about a second but when Samples per Channel is increased to 4800 it acquires for several seconds even though the sample rate is set to 4800 Hz (ie 4800 scans in a second). How can I set the sample rate at 4800 Hz and collect all 4800 data points over a second?
Thanks,
Martin
10-30-2013 07:41 AM
How are you setting up your task? Are you using Continuous Sampling or Finite Samples? From your description, it sound like you just want to use Finite Samples with the rate set to 4.8kHz and number of samples set to 4800. Start your task, wait at least 1 second, and read the data with DAQmx Read with the number of samples to read set to -1 (read all available).
10-30-2013 11:38 AM
10-30-2013 11:44 AM
I switched to finite samples and set the rate set to 4.8kHz and number of samples set to 4800 and all is working great now.
Thanks,
Martin