LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

samples per channel

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

 

0 Kudos
Message 1 of 4
(2,610 Views)

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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,602 Views)
I don't believe you when you say the acquisition of 480 points takes a second and that 4800 points takes several. With a sample rate of 4800, 480 points will take .1 second and 4800 points will take exactly 1 second. Attach your code since you must be doing something odd.
0 Kudos
Message 3 of 4
(2,579 Views)

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

 

0 Kudos
Message 4 of 4
(2,577 Views)