niDMM_CalAdjustGain
ViStatus = niDMM_CalAdjustGain(ViSession Instrument_Handle, ViInt32 Mode, ViReal64 Range, ViReal64 Input_Resistance, ViReal64 Expected_Value)
Purpose
Calibrates the gain coefficient for the supplied Mode, Range, and Input_Resistance.
![]() |
Notes The NI 4050 and NI 4060 are not supported. Refer to the NI 4065 6½ Digit DMM Calibration Procedure, the NI 4070/4072 6½ Digit FlexDMM Calibration Procedure, or the NI 4071 7½–Digit FlexDMM Calibration Procedure before using this function. |
Parameters
Input | ||
Name | Type | Description |
Instrument_Handle | ViSession | The session handle that you obtain from niDMM_InitExtCal. The handle identifies a particular instrument calibration session. |
Mode | ViInt32 | Specifies the calibration Mode used to acquire the measurement.
For valid modes, refer to the NI 4065 6½ Digit DMM Calibration Procedure, the NI 4070/4072 6½ Digit FlexDMM Calibration Procedure, or the NI 4071 7½–Digit FlexDMM Calibration Procedure. |
Range | ViReal64 | Specifies the Range to calibrate.
For valid ranges, refer to the NI 4065 6½ Digit DMM Calibration Procedure, the NI 4070/4072 6½ Digit FlexDMM Calibration Procedure, or the NI 4071 7½–Digit FlexDMM Calibration Procedure. Auto-ranging is not supported for calibration operations. |
Input_Resistance | ViReal64 | Specifies the Input_Resistance that the device should use. Input_Resistance values are coerced up to the closest Input_Resistance. |
Expected_Value | ViReal64 | Specifies the Expected_Value of the measurement. |
Return Value
Name | Type | Description |
Status | ViStatus | Reports the Status of this operation. To obtain a text description of the status code, call niDMM_error_message. To obtain additional information concerning the error condition, use niDMM_GetError. |