Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Relationship between samples per channel per second and sampling rate

Solved!
Go to solution

I was wondering if someone could clarify the relationship between samples per channel per second and sampling rate.

 

I have USB6008 and USB6363 boards that I am working with in Measurement Studio. 

 

For the USB6008 set for differential input (so four AI channels), if I set a sampling rate at 8192 samples per second and I set the samples per channel to 2048 with:

 

Task.Timing.ConfigureSampleClock( "", 8192, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 2048)

 

Am I correct in assuming that:

 

  • 8192 samples across the 4 analog input channels will be collected every second
  • 2048 samples will be collected per analog input channel for each sweep
  • The time between two successive data points is 1/2048 seconds (approximately 0.5 ms)

 

0 Kudos
Message 1 of 3
(4,490 Views)
Solution
Accepted by topic author DKIMZEY

Hi DKIMZEY,

 

The help page for "Timing.ConfigureSampleClock Method" should have a hyperlink to the "Sample Clock" page in the NI-DAQmx Help, which includes this text: "This sample clock sets the time interval between samples. Each tick of this clock initiates the acquisition or generation of one sample per channel." When the sample clock rate is 8192, then the time between two successive data points for a single channel is 1/8192 seconds. The time between data points on two adjacent channels is controlled by the AI convert clock, which can be controlled independently on most devices (up to a point).

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 2 of 3
(4,486 Views)

Brad,

 

Thanks most kindly!  That makes good sense. Samples per channel in continuous mode is actually a buffer for data points per channel. 

 

-Doug

0 Kudos
Message 3 of 3
(4,482 Views)