
public class HeaterPsDevice extends PowerDevice
PowerDevice.PowerState| Modifier and Type | Field and Description |
|---|---|
static int |
CHANSET_COLD
Constants.
|
static int |
CHANSET_CRYO
Constants.
|
static int |
TYPE_CURRENT
Constants.
|
static int |
TYPE_MAIN_CURR
Constants.
|
static int |
TYPE_MAIN_POWER
Constants.
|
static int |
TYPE_MAIN_STATUS
Constants.
|
static int |
TYPE_MAIN_TEMP
Constants.
|
static int |
TYPE_MAIN_VOLTS
Constants.
|
static int |
TYPE_POWER
Constants.
|
static int |
TYPE_TEMP
Constants.
|
static int |
TYPE_VOLTAGE
Constants.
|
| Constructor and Description |
|---|
HeaterPsDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
boolean |
getOutput(int chanSet)
Gets the output state.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all heater channels as a group.
|
double |
readCurrent(int chanSet)
Reads the current.
|
double |
readVoltage(int chanSet)
Reads the voltage.
|
void |
setCurrent(int chan,
double value)
Sets the current.
|
void |
setOutput(int chanSet,
boolean value)
Sets the output state of a set of channels.
|
void |
setVoltage(int chanSet,
double value)
Sets the voltage.
|
enableOutput, setOnline, setPoweraddChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int CHANSET_COLD
public static final int CHANSET_CRYO
public static final int TYPE_VOLTAGE
public static final int TYPE_CURRENT
public static final int TYPE_POWER
public static final int TYPE_TEMP
public static final int TYPE_MAIN_VOLTS
public static final int TYPE_MAIN_CURR
public static final int TYPE_MAIN_POWER
public static final int TYPE_MAIN_TEMP
public static final int TYPE_MAIN_STATUS
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype string (not used)Exception - if any errors found in the parameters.protected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public void setOutput(int chanSet,
boolean value)
setOutput in class PowerDevicechanSet - The hardware channel set (cold or cryo)value - The output state to set, true or falsepublic boolean getOutput(int chanSet)
getOutput in class PowerDevicechanSet - The hardware channel set (cold or cryo)@Command(description="Set the voltage",
type=ACTION)
public void setVoltage(int chanSet,
double value)
setVoltage in class PowerDevicechanSet - The hardware channel set (cold or cryo)value - The voltage to setpublic double readVoltage(int chanSet)
readVoltage in class PowerDevicechanSet - The hardware channel set (cold or cryo)public void setCurrent(int chan,
double value)
setCurrent in class PowerDevicechan - The hardware channel (not used)value - The current to setpublic double readCurrent(int chanSet)
readCurrent in class PowerDevicechanSet - The hardware channel set (cold or cryo)Copyright © 2019 LSST. All rights reserved.