54
|
ni.com
|
NI 5421/5441 Calibration Procedure
32. Call
niFgen_CalAdjustCalADC
(niFgen Cal Adjust Cal ADC VI) using the following
parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
voltagesMeasuredExternally
: An array containing two elements—the two voltages
(
external measurement 0
,
external measurement 1
) that you measured
with the DMM—in the order that you measured them
•
voltagesMeasuredWithCalADC
: An array containing two elements—the two
voltages (
cal ADC measurement 0
,
cal ADC measurement 1
) that you
measured with the onboard calibration ADC—in the order that you measured them.
33. Call
niFgen_SetAttributeViBoolean
to disable the analog output (NI-FGEN
Output Enabled property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_ENABLED
•
value
:
VI_FALSE
34. Call
niFgen_SetAttributeViInt32
to set the calibration ADC input (NI-FGEN Cal
ADC Input property) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
""
(empty string)
•
attributeID
:
NIFGEN_ATTR_CAL_ADC_INPUT
•
value
:
NIFGEN_VAL_GROUND
35. Call
niFgen_Commit
(niFgen Commit VI) to commit the attribute values to the device
using the following parameter:
•
vi
: The session handle returned from
niFgen_InitExtCal
Closing the External Adjustment Session
When you have completed all the adjustment stages, you must close the external adjustment
session to store the new calibration constants in the onboard EEPROM.
Call
niFgen_CloseExtCal
(niFgen Close Ext Cal VI) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
action
: One of the following values:
–
If the external adjustment procedure completed without any errors, use
NIFGEN_VAL_EXT_CAL_COMMIT
. This function stores the new calibration
constants, updated calibration dates, updated calibration temperatures in the onboard
EEPROM.
–
If any errors occurred during the external adjustment procedure or if you want to abort
the operation, use
NIFGEN_VAL_EXT_CAL_ABORT
. This function discards
the new calibration constants and does not change any of the calibration data stored in
the onboard EEPROM.