I'm using an NI USB-6351 to generate a SE analog output sine wave. The generated frequency range can range from 10KHz to 100KHz. Experimentally I've confirmed with 2 frequency counters, I am getting ~ 2 Hz resolution. The master clock for the system has a 100MHz clock. The DAQ output sample frequency is 2MHz, but I cannot figure out how to calculate the minimum frequency resolution from those parameters. I'd like to theoretically calculate if I can get 10,000 and 10,002, 10,004, etc, from system parameters, so I have an idea what is actually going on...
I was referenced to the below knowledgebase, but with it I don't get agreement with experiment.. It would insist on ~1KHz resolution, not 2 Hz.
Frequency Resolution of the Analog Output of a DAQ Device
That device has three base clocks, 20 MHz, 10 MHz, and 100 kHz, and maximum divisor of 16. 2 MHz would need a divisor of 10, and by using the +/- 1 on the divisor as shown in the link, I calculate roughly 200 Khz as the resolution.
To get 10000 Hz you would have to use the 100 kHz clock with a divisor of 10, which would get you a resolution of roughly 1000 Hz, which would be at all close to your 2 Hz desire.
When you measured the range using the frequency counters, were you requesting rates near to your 2 MHz and seeing what the minimum difference in generated frequencies was? Or were you measuring the variability in the frequency of the 2 MHz output? The precision of an frequency is different than the resolution. The spec for the precision of the output frequency is 50 ppm of the sampling rate; at 2 MHz that would come out as 100 Hz. It is plausible (to me) that you happen to be getting enough better than that in practice (since that is worst case) to see 2 Hz variability.
I have yet to work through the suggestions in this post, but I think it will provide more understanding if not an answer. http://forums.ni.com/t5/Multifunction-DAQ/USB-6351-minimum-analog-output-resolution/td-p/1868945 thanks for your help.
Play games and win prizes!Learn more