Sources reverse voltage to the DUT and measures leakage current. The sourced current is limited to 12 uA.

Syntax

ni4133_Status NI4133_DECL ni4133_MeasureReverseCurrent(ni4133_SessionHandle sessionHandle, double outputVoltageLevel, ni4133_LeakageCurrentSenseRange leakageCurrentSenseRange, double measurementDelay, double measurementTime, ni4133_MeasurementMode measurementMode, double *deltaTime, double reverseCurrentMeasurementBuffer[], double reverseVoltageMeasurementBuffer[], size_t bufferSize, size_t *actualBufferSize)

Parameters

NameDirectionTypeDescription
sessionHandle[in]ni4133_SessionHandle

Specifies the session to measure.

outputVoltageLevel[in]double

Specifies the voltage level to source to the DUT.

leakageCurrentSenseRange[in]ni4133_LeakageCurrentSenseRange

Specifies the current range used to measure leakage current.

Defined Values:

Name

Value

Description

ni4133_LeakageCurrentSenseRange_OneHundredMicroAmp

2 (0x2)

Configure the current sense range to be 100 micro Amp.

ni4133_LeakageCurrentSenseRange_OneMicroAmp

0 (0x0)

Configure the current sense range to be 1 micro Amp.

ni4133_LeakageCurrentSenseRange_TenMicroAmp

1 (0x1)

Configure the current sense range to be 10 micro Amp.

measurementDelay[in]double

Specifies the delay, in seconds, between sourcing voltage and measuring current.

measurementTime[in]double

Specifies the time, in seconds, over which the reverse current is measured. Increase this time to improve measurement resolution.

measurementMode[in]ni4133_MeasurementMode

Specifies how the measurement would be taken.

Defined Values:

Name

Value

Description

ni4133_MeasurementMode_Average

0 (0x0)

The acquired samples are averaged over the specified measurementTime and a single averaged measurement is returned.

ni4133_MeasurementMode_Waveform

1 (0x1)

The samples acquired over the specified measurementTime are returned.

deltaTime[out]double *

Returns the sampling period of the measurements.

reverseCurrentMeasurementBuffer[out]double[]

An array that contains the requested number of reverse current measurements.

reverseVoltageMeasurementBuffer[out]double[]

An array that contains the requested number of reverse voltage measurements. Reverse voltage measurements are useful when characterizing the settling time of the reverse current.

bufferSize[in]size_t

Specifies the buffer size for current and voltage measurements.

Set this field to 0 to query the expected buffer size for a given set of parameters. The actual required buffer size is returned by actualBufferSize.

actualBufferSize[out]size_t *

Returns the actual buffer size for all valid current or voltage measurements. Each buffer must be allocated at least to the specified value.

Returns

Reports the status of this operation.

To obtain a text description of the status code, call ni4133_GetErrorDescription. The general meaning of the status code is as follows:

Value

Meaning

Positive Values

Warnings

Negative Values

Errors