Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 

Frequency steps on analog output sampling rate settings

Go to solution


I am working with a NI-USB-6251 board and have the problem, that I can set the analog out sampling frequency in steps only - so if I set it to 300 kHz it will run with 298507,462687 Hz.


The problem is, that I need to sample out some predefined waveforms (created with a certain sampling rate) and due to the frequency shift og the output I get a streched or compressed waveform out.


Does somebody know why it is like that? I have attched a screenshot from a set-get-loop to show better what I mean.




0 Kudos
Message 1 of 6
Accepted by topic author sdudeck

The way the clocks work in most DAQ systems is you have a base clock and then you apply a divider to get the desired sample rate.  In the case of the 6251, it appears to be using a 20MHz base clock which is divided by 67 to get 298.507kHz.  In your case, this will give a 0.5% timing error.

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
Message 2 of 6

If you need extreme absolute accuracy, you should use an external clock that is phase locked to whatever is generating your source waveform.  If you don't, you will never be perfectly synchronized because of the finite resolution of the PLL generating your sampling clock, and because of the limited accuracy of the crystal oscillator driving the PLL.  

0 Kudos
Message 3 of 6

Thank you very much for the fast response.

0 Kudos
Message 4 of 6

Luckily we do not need extreme accuracy. We were just wondering why our outputted signals were shifted in frequency. But with the above knowledge we can just adapt our analysis to the minimal lower frequencies.

0 Kudos
Message 5 of 6

You can do a resampling (vi's are provided by NI) if needed.

Greetings from Germany

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

0 Kudos
Message 6 of 6