public class HP6624AChannel extends PowerChannel
PowerChannel
.
This class should now be instantiated from a Model#createPowerChannel(String, String, int, int, String)
DEFAULT_VOLTAGE_RESOLUTION, maxSettleMsec, name, settleResolution
Constructor and Description |
---|
HP6624AChannel(java.lang.String channelName,
java.lang.String supplyName,
int channel)
Creates an object to control a HP 6624A power supply using the methods of
the device-independent PowerChannel abstract class.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannel() |
float |
getCurrentSetpoint()
Get the channel's current setpoint
|
java.lang.String |
getState()
Returns string indicating state of the channels
|
java.lang.String |
getSupplyName() |
float |
getVoltageResolution()
Returns voltage resolution of power supply.
|
float |
getVoltageSetpoint()
Get the channel's voltage setpoint
|
static void |
main(java.lang.String[] args)
Unit tests, prints current as function of voltage for channel 1.
|
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 |
setOverCurrentProtection(float setAmps)
Changes the current for the over current protection to
setAmps Amps. |
void |
setOverVoltageProtection(float setVolts)
Changes the voltage for the over voltage protection to
setVolts Volts. |
void |
setVoltageNoWait(float volts)
Set the channel's voltage to the value provided
|
void |
waitForVoltage(float setVolts)
Waits until voltage measured on the channel is equal to setVolts within
the resolution of the power supply.
|
getName, readCurrent, setVoltageWait, toString
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public HP6624AChannel(java.lang.String channelName, java.lang.String supplyName, int channel)
Instead of this, you should use
Model#createPowerChannel(String, String, int, int, String)
.
I have left it public for backwards compatability.
channelName
- name of signal on this channel of the power supplysupplyName
- gpibconf
identifier for the power supplychannel
- Channel of the supply to controlpublic java.lang.String getSupplyName()
public int getChannel()
public java.lang.String getState()
getState
in class PowerChannel
public float readVoltage()
readVoltage
in interface VoltageReadable
readVoltage
in class PowerChannel
public void setVoltageNoWait(float volts)
setVoltageNoWait
in class PowerChannel
volts
- new voltage for the channel, in Voltspublic void waitForVoltage(float setVolts)
PowerChannel
waitForVoltage
in class PowerChannel
public float getVoltageSetpoint()
getVoltageSetpoint
in class PowerChannel
public float getVoltageResolution()
getVoltageResolution
in class PowerChannel
public float readCurrent()
readCurrent
in interface CurrentReadable
readCurrent
in class PowerChannel
public void setCurrent(float amps)
setCurrent
in class PowerChannel
amps
- new current limit for the channel, in Ampspublic float getCurrentSetpoint()
getCurrentSetpoint
in class PowerChannel
public void setOverVoltageProtection(float setVolts)
setVolts
Volts.setVolts
- the new over-voltage limitjava.lang.IllegalArgumentException
- if channel not in range 1..4public void setOverCurrentProtection(float setAmps)
setAmps
Amps.setAmps
- the new over-current limitjava.lang.IllegalArgumentException
- if channel not in range 1..4public static void main(java.lang.String[] args)
args
- Ignored