DigitalSourceDCVoltage.ConfigureCurrentLimit Method
- Updated2023-11-24
- 2 minute(s) read
DigitalSourceDCVoltageConfigureCurrentLimit Method
Configures the current limit for the pin set when forcing voltage.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public void ConfigureCurrentLimit( PpmuCurrentLimitBehavior behavior, double limit )
Public Sub ConfigureCurrentLimit ( behavior As PpmuCurrentLimitBehavior, limit As Double )
Parameters
- behavior
- Type: NationalInstruments.ModularInstruments.NIDigitalPpmuCurrentLimitBehavior
Specifies how the output current behaves when the current limit is reached. - limit
- Type: SystemDouble
Specifies the current limit, in amps, on the pins. The valid values for this parameter are defined by the CurrentLimitRange property.
Exceptions
Exception | Condition |
---|---|
SelectorNameException | An instance of DigitalPinSet references a pin or pin group name not loaded in the pin map. |
OutOfRangeException |
|
Remarks
When forcing voltage by setting the PPMU
OutputFunction to
DCVoltage the current sourced or sunk is clamped to the specified current limit. Select the smallest current limit that meets the expected current requirements of the DUT.
If the current required by the DUT exceeds the selected CurrentLimitRange, the voltage output may not meet the specified voltage level. Choose a larger current limit range if needed.
Changing this property does not take affect until you call Source. You can call Source to commit your changes even if the PPMU is already sourcing.
Not all instruments support this capability. Use the IsCurrentLimitSupported property to programmatically determine whether an instrument supports this capability. If high-accuracy current clamping functionality is required, consider using a Source Measure Unit (SMU) instrument.