niDMM_ConfigureCurrentSource

NI-DMM C/CVI/VB

niDMM_ConfigureCurrentSource

ViStatus = niDMM_ConfigureCurrentSource(ViSession Instrument_Handle, ViReal64 Current_Source)

Purpose

The NI 4050 and NI 4060 are not supported. Configures the Current_Source for diode measurements.

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.
Current_Source ViReal64 Specifies the Current_Source provided during diode measurements. For valid ranges on the NI 4065, NI 4070, 4071, or 4072, refer to the NI 4065, NI 4070, NI 4071, or NI 4072 topics. The driver sets NIDMM_ATTR_CURRENT_SOURCE to this value.

NIDMM_VAL_1_MICROAMP1 µANI 4070/4071/4072 only
NIDMM_VAL_10_MICROAMP10 µANI 4070/4071/4072 only
NIDMM_VAL_100_MICROAMP100 µANI 4070/4071/4072 and NI 4065
NIDMM_VAL_1_MILLIAMP (default)1 mANI 4070/4071/4072 and NI 4065

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.