public class PowerChannelResistorVoltageReadable extends PowerChannel
DEFAULT_VOLTAGE_RESOLUTION, maxSettleMsec, name, settleResolution
Constructor and Description |
---|
PowerChannelResistorVoltageReadable(PowerChannel pc,
float ohmsOfResistor,
VoltageReadable voltMeterAcrossResistor,
boolean fastConvergence) |
Modifier and Type | Method and Description |
---|---|
float |
getCurrentSetpoint()
Get the channel's current limit setpoint
|
float |
getVoltageSetpoint()
Get the channel's voltage setpoint
|
float |
readCurrent()
Measures the current on this channel of the power supply
|
float |
readVoltage()
Measures the voltage on this channel of the power supply
|
void |
setCurrent(float amps)
Set the channel's current limit to the value provided
|
void |
setVoltageNoWait(float volts)
Set the channel's voltage to the value provided
|
void |
setVoltageWait(float v)
Set the channel's voltage and wait until it reaches requested value.
|
void |
waitForVoltage(float setVolts)
Waits until voltage measured on the channel is equal to setVolts within
the resolution of the power supply.
|
getName, getState, getVoltageResolution, readCurrent, toString
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public PowerChannelResistorVoltageReadable(PowerChannel pc, float ohmsOfResistor, VoltageReadable voltMeterAcrossResistor, boolean fastConvergence)
public void setCurrent(float amps)
PowerChannel
setCurrent
in class PowerChannel
amps
- new current limit for the channel, in Ampspublic float getCurrentSetpoint()
PowerChannel
getCurrentSetpoint
in class PowerChannel
public float readCurrent()
PowerChannel
readCurrent
in interface CurrentReadable
readCurrent
in class PowerChannel
public float readVoltage()
PowerChannel
readVoltage
in interface VoltageReadable
readVoltage
in class PowerChannel
public void setVoltageNoWait(float volts)
PowerChannel
setVoltageNoWait
in class PowerChannel
volts
- new voltage for the channel, in Voltspublic void waitForVoltage(float setVolts)
PowerChannel
waitForVoltage
in class PowerChannel
public float getVoltageSetpoint()
PowerChannel
getVoltageSetpoint
in class PowerChannel
public void setVoltageWait(float v)
PowerChannel
setVoltageWait
in class PowerChannel
v
- new voltage for the channel, in Volts