Chapter 3
Adjustment
3-28
ni.com
•
attenuationInDb
—
0
•
terminationState
—
NI54XX_UNTERMINATED
4.
Initialize the VCXO calibration for M-PAL mode by calling the function
ni54xx_InitializeVCXOCalibration
. Set the following
parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
type
—
NI54XX_SET_VCXO_PAL_M
5.
Set the VCXO with the current “best-guess” value (M-PAL mode) by
calling the function
ni54xx_CalibrateVCXO
. Set the following
parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
type
—
NI54XX_SET_VCXO_PAL_M
6.
Measure the new frequency (
currentFrequency
).
7.
While the |frequency – 1 MHz| is greater than the tolerance
and
you have
not entered this loop more than 12 times, follow these steps:
a.
Call
ni54xx_CalAdjust
for measurement mode
NI54XX_SET_VCXO_PAL_M
, which calculates the next
“best-guess” VCXO DAC value. The
measuredData
should be a
pointer to the measured frequency and the
actualData
should be
a pointer to the desired frequency (1 MHz). Call the function
ni54xx_CalAdjust
using the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
measurementMode
—
NI54XX_SET_VCXO_PAL_M
•
actualData
—
&desiredFrequency
•
measuredData
—
¤tFrequency
b.
Set the VCXO with the new “best-guess” value (M-PAL mode) by
calling the function
ni54xx_CalibrateVCXO
. Set the following
parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
type
—
NI54XX_SET_VCXO
_
PAL_M
c.
Measure the new frequency (
currentFrequency
).