niDMM_ConfigureOffsetCompOhms

NI-DMM C/CVI/VB

niDMM_ConfigureOffsetCompOhms

ViStatus = niDMM_ConfigureOffsetCompOhms(ViSession Instrument_Handle, ViInt32 Offset_Comp_Ohms)

Purpose

For NI 4070/4071/4072 only, allows the DMM to compensate for voltage offsets in resistance measurements. When Offset_Comp_Ohms is enabled, the DMM measures the resistance twice (once with the current source on and again with it turned off). Any voltage offset present in both measurements is cancelled out. Offset_Comp_Ohms is useful when measuring resistance values less than 10 KΩ.

Parameters

Input
Name Type Description
Instrument_Handle ViSession Identifies a particular instrument session. You obtain the Instrument_Handle parameter from niDMM_init or niDMM_InitWithOptions. The default is None.
Offset_Comp_Ohms ViInt32 Enables or disables Offset_Comp_Ohms. The driver sets NIDMM_ATTR_OFFSET_COMP_OHMS to this value.

NameValueDescription
NIDMM_VAL_OFFSET_COMP_OHMS_OFF (default) 0 Off disables Offset_Comp_Ohms.
NIDMM_VAL_OFFSET_COMP_OHMS_ON 1 On enables Offset_Comp_Ohms.

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.