niDMM_PerformShortCableComp

NI-DMM C/CVI/VB

niDMM_PerformShortCableComp

ViStatus = niDMM_PerformShortCableComp(ViSession Instrument_Handle, ViReal64 *Resistance, ViReal64 *Reactance)

Purpose

Performs the short cable compensation measurements for the current capacitance/inductance range, and returns short cable compensation Resistance and Reactance values. You can use the return values of this function as inputs to niDMM_ConfigureShortCableCompValues.

This function returns an error if the value of the NIDMM_ATTR_FUNCTION attribute is not set to NIDMM_VAL_CAPACITANCE (1005) or NIDMM_VAL_INDUCTANCE (1006).

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.
Output
Name Type Description
Resistance ViReal64* Resistance is the measured value of short cable compensation Resistance.
Reactance ViReal64* Reactance is the measured value of short cable compensation Reactance.

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.