
public class HeaterPsDevice extends PowerDevice
PowerDevice.ChannelState| 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_TOTAL_POWER
Constants.
|
static int |
TYPE_VOLTAGE
Constants.
|
CONN_TYPE_NOT_CONFIG, connType, DEVC_ID_NOT_CONFIG, DEVC_PARM_NOT_CONFIG, devcId, devcParm, maxCurrent, MON_TYPE_CURRENT, MON_TYPE_POWER, MON_TYPE_VOLTAGE, mTypeMap, NETWORK_CONN_INVALID, psd, timeout| Constructor and Description |
|---|
HeaterPsDevice()
Constructor.
|
| 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.
|
void |
enableColdSection(int section,
boolean enable)
Sets the enabled state of the outer cold channels.
|
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, getConnType, getDevcId, getDevcParm, getMaxChannel, getMinChannel, getPower, hasCantSet, hasNoLoad, hasVoltError, isEnabled, maintainPower, setOnline, setPoweraddLine, 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, testOnlinepublic 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_TOTAL_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 PowerDeviceprotected void initialize()
initialize in class PowerDeviceprotected void close()
close in class PowerDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class PowerDevicename - 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 PowerDeviceprotected double readChannel(int hwChan,
int type)
readChannel in class PowerDevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public void enableColdSection(int section,
boolean enable)
section - The cold channel section (y-plus or y-minus)enable - Whether or not to enablepublic void setOutput(int chanSet,
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
setOutput in class PowerDevicechanSet - The hardware channel set (cold or cryo)value - The output state to set, true or falseorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chanSet)
throws org.lsst.ccs.drivers.commons.DriverException
getOutput in class PowerDevicechanSet - The hardware channel set (cold or cryo)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(int chanSet,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
setVoltage in class PowerDevicechanSet - The hardware channel set (cold or cryo)value - The voltage to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chanSet)
throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in class PowerDevicechanSet - The hardware channel set (cold or cryo)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(int chan,
double value)
setCurrent in class PowerDevicechan - The hardware channel (not used)value - The current to setpublic double readCurrent(int chanSet)
throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in class PowerDevicechanSet - The hardware channel set (cold or cryo)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2019 LSST. All rights reserved.