Chapter 3
Adjustment
3-12
ni.com
3.
Generate a full scale sine wave at 500 Hz by calling the function
ni54xx_GenerateWaveform
. Set the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
waveType
—
NI54XX_SINE
•
amplitudeInVolts
—
10
•
frequencyInHz
—
500
4.
Measure the outputs (
lowFrequencyAmplitude
).
5.
Enable the 10 dB attenuator by calling the function
ni54xx_SetAttenuation
. Set the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
attenuation
—
10
6.
Measure the outputs (
amplitudeWith10dbAttenuatorEnabled
).
7.
Feed the measurements to
ni54xx_CalAdjust
. The
measuredData
is a pointer to the value of the output with the attenuator enabled, and the
actualData
is a pointer to the value of the output with the attenuator
disabled.
Call the function
ni54xx_CalAdjust
using the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
measurementMode
—
NI54XX_SET_A8
•
actualData
—
&lowFrequencyAmplitude
•
measuredData
—
&litudeWith10dBAttenuatorEnabled
Determining the Output Dependence On Offsets of Several
Stages of the Analog Channel (Constants A0, A5, and A6)
Measure the outputs of the device in three different states.
1.
Set the offset calibration DAC to 0 by calling the function
ni54xx_SetOffsetDAC
. Set the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
DACValue
—
0