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)
double
getCurrent()
Returns the current output of the supplystatic java.lang.String
getDescription()
double
getVoltage()
Returns the voltage output of the supplydouble
getVoltageLimit()
Returns the currently set voltage limit (OVP).boolean
isOn()
Returns whether the output of the supply is enabled or notvoid
setCurrent(double current)
Sets the current output level of the supplyvoid
setCurrentLimit(double current)
Sets the current protection limitdefault void
setOn(boolean on)
Enables or disables output of the power supplyvoid
setVoltage(double voltage)
Sets the voltage output level of the supplyvoid
setVoltageLimit(double limit)
Sets the voltage limit, also known as over-voltage protection.void
turnOff()
Disables the output of the power supplyvoid
turnOn()
Enables the output of the power supplydefault void
waitForStableCurrent(double pctError, long time)
Wait for the current output of the supply to be stable within the given percentage margin and time-framedefault void
waitForStableVoltage(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:
getConfigurationParameters
in interfaceInstrument
-
turnOn
void turnOn() throws java.io.IOException, DeviceException
Enables the output of the power supply
-
turnOff
void turnOff() throws java.io.IOException, DeviceException
Disables the output of the power supply
-
setOn
default void setOn(boolean on) throws java.io.IOException, DeviceException
Enables or disables output of the power supply- Specified by:
setOn
in interfaceSwitch
- Parameters:
on
- Output enabled?- Throws:
java.io.IOException
- Upon communication errorDeviceException
- Upon device compatibility error
-
isOn
boolean isOn() throws java.io.IOException, DeviceException
Returns whether the output of the supply is enabled or not
-
setVoltage
void setVoltage(double voltage) throws java.io.IOException, DeviceException
Sets the voltage output level of the supply- Specified by:
setVoltage
in 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, DeviceException
Sets the current output level of the supply- Specified by:
setCurrent
in interfaceISource
- Parameters:
current
- Current, in Amps- Throws:
java.io.IOException
- Upon communication errorDeviceException
- Upon device compatibility error
-
getVoltage
double getVoltage() throws java.io.IOException, DeviceException
Returns the voltage output of the supply- Specified by:
getVoltage
in interfaceVSource
- Returns:
- Output voltage, in Volts
- Throws:
java.io.IOException
- Upon communication errorDeviceException
- Upon device compatibility error
-
getCurrent
double getCurrent() throws java.io.IOException, DeviceException
Returns the current output of the supply- Specified by:
getCurrent
in 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, DeviceException
Sets 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, DeviceException
Returns 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, DeviceException
Sets 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.InterruptedException
Wait 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.InterruptedException
Wait 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
-
-