NI 5412 Calibration Procedure
|
© National Instruments
|
41
10. Call
niFgen_CreateArbWaveform
(niFgen Create Arbitrary Waveform VI) using the
following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
wfmSize
: The size in samples (
500
) of the waveform you created in step 9.
•
wfmData
: The array of waveform samples that you created in step 9.
•
wfmHandle
: The variable passed by reference through this parameter receives the
value (waveform handle) that identifies the waveform created by this function.
11. Call
niFgen_SetAttributeViInt32
to choose the sine waveform (niFgen property
node:
Arbitrary Waveform Output»Arbitrary Waveform Handle
) using the following
parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ARB_WAVEFORM_HANDLE
•
value
: The
wfmHandle
from step 10 (sine waveform handle).
12. Call
niFgen_InitiateGeneration
(niFgen Initiate Generation VI) to initiate the
waveform generation using the following parameter:
•
vi
: The session handle returned from
niFgen_InitExtCal
13. Measure the frequency of the generated waveform. This value is the
Measured Frequency
,
which is used in step 14.
14. Repeat steps 14a through 14d for as long as the difference between the
Measured
Frequency
and the desired frequency (10 MHz) is greater than the tolerance (4.5 ppm).
The measured frequency should converge on the desired frequency. If the measured
frequency does not converge on the desired frequency within 16 iterations, a problem may
exist with your measurement device or the NI 5412.
a. Call
niFgen_AbortGeneration
(niFgen Abort Generation VI) to abort the
waveform generation using the following parameter:
•
vi
: The session handle returned from
niFgen_InitExtCal
b. Call
niFgen_CalAdjustOscillatorFrequency
(niFgen Cal Adjust Oscillator
Frequency VI) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
desiredFrequencyInHz
: The desired frequency (
10000000
) of the generated
sinusoid in Hz.
•
measuredFrequencyInHz
: The
measured frequency
of the generated
sinusoid in Hz.
c. Call
niFgen_InitiateGeneration
(niFgen Initiate Generation VI) to initiate the
waveform generation using the following parameter:
•
vi
: The session handle returned from
niFgen_InitExtCal
d. Measure the frequency of the generated waveform. This value is the
Measured
Frequency
.