34
|
ni.com
|
NI 5421/5441 Calibration Procedure
In each of these subprocedures, you put the device in several configurations and take several
output measurements. You then pass these measurements to NI-FGEN, which determines the
calibration constants for the device.
Initializing Analog Output Calibration
1.
Call
niFgen_InitializeAnalogOutputCalibration
(niFgen Initialize Analog
Output Calibration VI) using the following parameter:
•
vi
: The session handle returned from
niFgen_InitExtCal
2.
Call
niFgen_WriteBinary16AnalogStaticValue
(niFgen Write Binary 16 Analog
Static Value VI) to set the main DAC value using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
value
:
0
3.
Call
niFgen_SetAttributeViInt32
to set the analog path value (NI-FGEN Analog
Path property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ANALOG_PATH
•
value
:
NIFGEN_VAL_FIXED_LOW_GAIN_ANALOG_PATH
4.
Call
niFgen_SetAttributeViInt32
to set the gain DAC value (NI-FGEN Gain DAC
Value property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_GAIN_DAC_VALUE
•
value
:
2000
5.
Call
niFgen_SetAttributeViInt32
to set the offset DAC value (NI-FGEN Offset
DAC Value property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OFFSET_DAC_VALUE
•
value
:
32767
6.
Call
niFgen_SetAttributeViBoolean
to set the analog filter state (NI-FGEN
Analog Filter Enabled property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ANALOG_FILTER_ENABLED
•
value
:
VI_FALSE