public class Agilent6031AChannel 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 |
---|
Agilent6031AChannel(java.lang.String channelName,
java.lang.String supplyName)
Creates an object to control a Agilent 6031A power supply using the methods of
the device-independent PowerChannel abstract class.
|
Modifier and Type | Method and Description |
---|---|
float |
getCurrentSetpoint()
Get the channel's current setpoint
|
int |
getFoldback()
Gets the foldback mode or turns it off.
|
float |
getOverVoltageProtection()
Gets the over voltage protection value.
|
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 |
setFoldback(int mode)
Sets the foldback mode or turns it off.
|
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 Agilent6031AChannel(java.lang.String channelName, java.lang.String supplyName)
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 power supplysupplyName
- gpibconf
identifier for the power supplypublic java.lang.String getSupplyName()
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 int getFoldback()
public void setFoldback(int mode)
mode
- Foldback mode to set. Can be Agilent6031A.FOLDBACK_CV
,
FOLDBACK_CC
, or FOLDBACK_OFF
.java.lang.IllegalArgumentException
- if mode not in 0..2public float getOverVoltageProtection()
public static void main(java.lang.String[] args)
args
- Ignored