Measurement Studio for VC++

Showing results for 
Search instead for 
Did you mean: 

Continuous Voltage Generation and period precision


I use a modified version of the ContGenVoltageWfm_IntClk sample (Measurement Studio 8 & Visual Studio 2005) on a <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 9"><meta name="Originator" content="Microsoft Word 9">NI-PCI-6731 card. Our goal is to output a signal continuously with a maximum precision. By default in the example, ouput frequency is at 1kHz (samples per second) and the precision is good. If we used a higher ouput frequency ie 22kHz, the real output frequency seems to be higher : 22.022kHz, there is a glitch. Is there an explanation for that ?


0 Kudos
Message 1 of 2
Found the trick :

the output sample rate must be a divider of the Master Timebase Rate (here 20MHz). So it work with 1kHz but not with 48kHz, here is the glitch.
0 Kudos
Message 2 of 2