该内容不适用于您选择的语言

该内容将以另一种语言显示出来。 您可使用浏览器的翻译功能查看内容。

What Sample Rates Is my DAQ Board Actually Capable of Achieving?

Updated Feb 5, 2024

Reported In

Driver

  • NI-DAQmx

Issue Details

I know that my DAQ board is only capable of a finite set of sample rates since the sample clock for analog input and analog output tasks is generated by dividing the onboard clock by an integer value. When I set the sample rate, the actual sample rate achieved may differ slightly, as explained in DAQ Device is Not Sampling at Specified Rate in LabVIEW .

How can I determine what sample rates my device is actually capable of achieving?

Solution

Most DAQ devices have two timebase frequencies: 20 MHz and 100 kHz. To achieve the desired sample clock rate for a given task, this master timebase must be divided down. The divisor is always an integer value and the size of the integer is dependent on the model of the data acquisition board.

For E Series:
  • AI Sample Clock divisor: 24 bits
  • AI Convert Clock divisor: 16 bits
  • AO Sample Clock divisor: 24 bits

For M Series and X Series:
  • AI Sample Clock divisor: 32 bits
  • AI Convert Clock divisor: 32 bits
  • AO Sample Clock divisor: 32 bits

Note: X series devices can use a 100 MHz timebase as well as 20 MHz and 100 KHz.

Additional Information

Example: Assume the timebase divisor is a 16-bit integer. This allows the 20 MHz timebase to be used for sample rates of:
  • 20 MHz / 216 ≈ 305 Hz
  • 20 MHz / (216-1) ≈ 610 Hz
  • 20 MHz / (216-2) ≈ 1.22 kHz
  • etc., all the way up to the maximum sample rate of the device.