Package jisa.devices.interfaces
Interface DCPower
-
- All Superinterfaces:
Instrument,ISource,IVSource,Switch,VSource
- All Known Implementing Classes:
AgilentE3644A,K2200,TSX3510P
public interface DCPower extends IVSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.devices.interfaces.Instrument
Instrument.AutoQuantity<S>, Instrument.OptionalQuantity<S>, Instrument.Parameter<S>, Instrument.Setter<S>, Instrument.TableQuantity
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<Instrument.Parameter<?>>getConfigurationParameters(java.lang.Class<?> target)doublegetCurrent()Returns the current output of the supplystatic java.lang.StringgetDescription()doublegetVoltage()Returns the voltage output of the supplydoublegetVoltageLimit()Returns the currently set voltage limit (OVP).booleanisOn()Returns whether the output of the supply is enabled or notvoidsetCurrent(double current)Sets the current output level of the supplyvoidsetCurrentLimit(double current)Sets the current protection limitdefault voidsetOn(boolean on)Enables or disables output of the power supplyvoidsetVoltage(double voltage)Sets the voltage output level of the supplyvoidsetVoltageLimit(double limit)Sets the voltage limit, also known as over-voltage protection.voidturnOff()Disables the output of the power supplyvoidturnOn()Enables the output of the power supplydefault voidwaitForStableCurrent(double pctError, long time)Wait for the current output of the supply to be stable within the given percentage margin and time-framedefault voidwaitForStableVoltage(double pctError, long time)Wait for the voltage output of the supply to be stable within the given percentage margin and time-frame-
Methods inherited from interface jisa.devices.interfaces.Instrument
close, getAddress, getConfigurationParameters, getIDN, getLockObject, getName, setTimeout
-
Methods inherited from interface jisa.devices.interfaces.IVSource
getSetCurrent, getSetVoltage
-
-
-
-
Method Detail
-
getDescription
static java.lang.String getDescription()
-
getConfigurationParameters
default java.util.List<Instrument.Parameter<?>> getConfigurationParameters(java.lang.Class<?> target)
- Specified by:
getConfigurationParametersin interfaceInstrument
-
turnOn
void turnOn() throws java.io.IOException, DeviceExceptionEnables the output of the power supply
-
turnOff
void turnOff() throws java.io.IOException, DeviceExceptionDisables the output of the power supply
-
setOn
default void setOn(boolean on) throws java.io.IOException, DeviceExceptionEnables or disables output of the power supply- Specified by:
setOnin interfaceSwitch- Parameters:
on- Output enabled?- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
isOn
boolean isOn() throws java.io.IOException, DeviceExceptionReturns whether the output of the supply is enabled or not
-
setVoltage
void setVoltage(double voltage) throws java.io.IOException, DeviceExceptionSets the voltage output level of the supply- Specified by:
setVoltagein interfaceVSource- Parameters:
voltage- Voltage, in Volts- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
setCurrent
void setCurrent(double current) throws java.io.IOException, DeviceExceptionSets the current output level of the supply- Specified by:
setCurrentin interfaceISource- Parameters:
current- Current, in Amps- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
getVoltage
double getVoltage() throws java.io.IOException, DeviceExceptionReturns the voltage output of the supply- Specified by:
getVoltagein interfaceVSource- Returns:
- Output voltage, in Volts
- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
getCurrent
double getCurrent() throws java.io.IOException, DeviceExceptionReturns the current output of the supply- Specified by:
getCurrentin interfaceISource- Returns:
- Output current, in Amps
- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
setVoltageLimit
void setVoltageLimit(double limit) throws java.io.IOException, DeviceExceptionSets the voltage limit, also known as over-voltage protection. Setting a value of zero will disable this limit.- Parameters:
limit- Voltage limit, in Volts- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
getVoltageLimit
double getVoltageLimit() throws java.io.IOException, DeviceExceptionReturns the currently set voltage limit (OVP). Zero means no limit is set.- Returns:
- Voltage limit, in Volts
- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
setCurrentLimit
void setCurrentLimit(double current) throws java.io.IOException, DeviceExceptionSets the current protection limit- Parameters:
current- limit [A]- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility error
-
waitForStableVoltage
default void waitForStableVoltage(double pctError, long time) throws java.io.IOException, DeviceException, java.lang.InterruptedExceptionWait for the voltage output of the supply to be stable within the given percentage margin and time-frame- Parameters:
pctError- Margin of error, percentagetime- Minimum time for voltage to be considered stable, milliseconds- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility errorjava.lang.InterruptedException
-
waitForStableCurrent
default void waitForStableCurrent(double pctError, long time) throws java.io.IOException, DeviceException, java.lang.InterruptedExceptionWait for the current output of the supply to be stable within the given percentage margin and time-frame- Parameters:
pctError- Margin of error, percentagetime- Minimum time for voltage to be considered stable, milliseconds- Throws:
java.io.IOException- Upon communication errorDeviceException- Upon device compatibility errorjava.lang.InterruptedException
-
-