public class HP6624A extends Equipment
Rather than using this class directly, you should use HP6624AChannel
Modifier and Type | Field and Description |
---|---|
static int |
NUM_CHANNELS
Number of channels (value = 4)
|
CONTROLLER_ID_NUMBER
Modifier | Constructor and Description |
---|---|
protected |
HP6624A(java.lang.String newName)
Creates a new instance of HP6624A
|
Modifier and Type | Method and Description |
---|---|
float |
getCurrentSetpoint(int channel)
Reads back the current setpoint from one of the 4 channels
|
java.lang.String |
getState(int channel)
Returns string indicating state of one of the channels
|
static float |
getVoltageResolution(int channel)
Returns voltage resolution of channel
|
float |
getVoltageSetpoint(int channel)
Reads back the voltage setpoint from one of the 3 channels
|
static void |
main(java.lang.String[] args) |
float |
readCurrent(int channel)
Reads back the current from one of the 4 channels
|
float |
readVoltage(int channel)
Measures the voltage on one of the 4 channels
|
void |
setCurrent(int channel,
float setAmps)
Changes the current setpoint on channel
channel to
setAmps Amps. |
void |
setOverCurrentProtection(int channel,
float setAmps)
Changes the current for the over current protection on channel
channel to
setAmps Amps. |
void |
setOverVoltageProtection(int channel,
float setVolts)
Changes the voltage for the over voltage protection on channel
channel to
setVolts Volts. |
void |
setVoltage(int channel,
float voltage)
Sets the voltage on one of the 4 channels
|
ask, clear, command, getName, interactive, isDisabled, read, readFloat, readLine, toString, write
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public static final int NUM_CHANNELS
protected HP6624A(java.lang.String newName)
public java.lang.String getState(int channel)
java.lang.IllegalArgumentException
- if channel not in range 1..3public static float getVoltageResolution(int channel)
channel
- Supply channel numberjava.lang.IllegalArgumentException
- if channel not in range 1..4public float readVoltage(int channel)
java.lang.IllegalArgumentException
- if channel not in range 1..4public float getVoltageSetpoint(int channel)
java.lang.IllegalArgumentException
- if channel not in range 1..4public void setVoltage(int channel, float voltage)
public float readCurrent(int channel)
public float getCurrentSetpoint(int channel)
java.lang.IllegalArgumentException
- if channel not in range 1..4public void setCurrent(int channel, float setAmps)
channel
to
setAmps
Amps.java.lang.IllegalArgumentException
- if channel not in range 1..4public void setOverVoltageProtection(int channel, float setVolts)
channel
to
setVolts
Volts.channel
- selects which channelsetVolts
- the new over-voltage limitjava.lang.IllegalArgumentException
- if channel not in range 1..4public void setOverCurrentProtection(int channel, float setAmps)
channel
to
setAmps
Amps.channel
- selects which channelsetAmps
- the new over-current limitjava.lang.IllegalArgumentException
- if channel not in range 1..4public static void main(java.lang.String[] args)