public class ManualPowerChannel extends PowerChannel
DEFAULT_VOLTAGE_RESOLUTION, maxSettleMsec, name, settleResolution
Constructor and Description |
---|
ManualPowerChannel(java.lang.String channelName,
boolean promptsUser) |
Modifier and Type | Method and Description |
---|---|
float |
getCurrentSetpoint()
Get the channel's current limit setpoint
|
float |
getVoltageSetpoint()
Get the channel's voltage set point.
|
static void |
main(java.lang.String[] args)
Unit tests, prints current as function of voltage
|
float |
readCurrent()
Reads back the current provided by this channel of the power supply.
|
float |
readVoltage()
Reads back the voltage provided by 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
|
getName, getState, getVoltageResolution, readCurrent, setVoltageWait, toString, waitForVoltage
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public ManualPowerChannel(java.lang.String channelName, boolean promptsUser)
channelName
- name of signal on this channel of the power supplypromptsUser
- Whether or not to prompt the user for voltage changespublic float readVoltage()
readVoltage
in interface VoltageReadable
readVoltage
in class PowerChannel
public float getVoltageSetpoint()
getVoltageSetpoint
in class PowerChannel
public void setVoltageNoWait(float volts)
setVoltageNoWait
in class PowerChannel
volts
- new voltage for the channel, in Voltspublic void setCurrent(float amps)
setCurrent
in class PowerChannel
amps
- new current limit for the channel, in Ampspublic float getCurrentSetpoint()
getCurrentSetpoint
in class PowerChannel
public float readCurrent()
readCurrent
in interface CurrentReadable
readCurrent
in class PowerChannel
public static void main(java.lang.String[] args)
args
- Ignored