Chapter 3
Adjustment
©
National Instruments Corporation
3-9
3.
For
x
= (–10, –7.5, –5, –2.5, 0, 2.5, 5, 7.5, 10), generate a DC output
of amplitude
x
:
a.
Call the function
ni54xx_GenerateWaveform
using the
following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
waveType
—
NI54XX_DC
•
amplitudeInVolts
—
x
•
frequencyInHz
—
0.0
b.
Measure the outputs (
mainDACSweepResults[]
).
4.
Feed the measurements to
ni54xx_CalAdjust
. The
measuredData
are the new array of measurements, and the
actualData
are the DAC
values corresponding to outputs (see Table 3-2). Call the function
ni54xx_CalAdjust
using the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
measurementMode
—
NI54XX_SET_A3
•
actualData
—
mainDACSweepValues
•
measuredData
—
mainDACSweepResults
5.
Set the gain calibration DAC to –8192 by calling the function
ni54xx_SetGainDAC
. Set the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
DACValue
— –
8192
6.
For
x
= (–10, –7.5, –5, –2.5, 0, 2.5, 5, 7.5, 10)
a.
Generate a DC output of amplitude
x
by calling the function
ni54xx_GenerateWaveform
. Set the following parameters:
•
sessionHandle
—The handle of the calibration session for the
device
•
waveType
—
NI54XX_DC
•
amplitudeInVolts
—
x
•
frequencyInHz
—
0.0
b.
Measure the outputs (
mainDACSweepResults[]
).