![NI 5421 Calibration Procedure Download Page 52](http://html1.mh-extra.com/html/ni/5421/5421_calibration-procedure_1685638052.webp)
52
|
ni.com
|
NI 5421/5441 Calibration Procedure
12. Wait 500 ms for the output to settle.
13. 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_ANALOG_OUTPUT
14. 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
:
27232
15. 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
16. 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
17. Wait 500 ms for the output to settle.
18. Call
niFgen_ReadCalADC
(niFgen Read CAL ADC VI) to measure the analog output
voltage with the onboard calibration ADC using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
numberOfReadsToAverage
:
3
•
returnCalibratedValue
:
VI_FALSE
•
calADCValue
: A ViReal64 variable. The variable passed by reference through this
parameter receives the voltage measured by the onboard ADC. This value is
cal ADC
measurement 0
, which is used in step 32.
19. Call
niFgen_SetAttributeViBoolean
to enable 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_TRUE
20. 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