ni4133_MeasureReverseCurrent
- Updated2025-11-18
- 2 minute(s) read
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
| Name | Direction | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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:
| ||||||||||||
| 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:
| ||||||||||||
| 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 |