NI DAQ Device Frequency Resolution of the Analog Output

Updated May 10, 2024

Reported In

Hardware

  • Multifunction I/O Device

Issue Details

I want to know the frequency resolution of the analog output on my DAQ device. Can I calculate this myself, or is there an available approximation I can use instead?

Solution

The analog frequency you can generate (Fanalog) is determined by the update clock frequency (Fupdate) and number of samples per cycle (Scycle). The onboard 20 MHz clock that is used to generate Fupdate can only be divided by an integer. 
 
As an example, if we need  to generate a clean sine wave at 2 kHz we would need roughly 50 samples per cycle. Therefore: 

Fanalog = Fupdate / Scycle
2 kHz = Fupdate / 50
Fupdate = 100 kHz
 
Now, 

20 MHz / x = 100 kHz 
x = 200
 
This calculation shows that the onboard clock must be divided by 200 to obtain an update clock rate of 100 kHz. The next available update clock we could generate would occur using a divisor of 199 or 201. If we chose 201, it would produce the following results:

Update Clock = 20 MHz / 201 = 99502.48 Hz
Fanalog = 99502.48 Hz / 50 = 1990.05 Hz


The smallest frequency change that we could generate in this case would be approximately 10 Hz. Another limiting factor would be the code width of the DAQ device in use, but this is rarely a factor as most users do not want that many samples to represent a cycle.