
public class HeaterPsDevice extends PowerDevice
PowerDevice.ChannelState| Modifier and Type | Field and Description |
|---|---|
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.
|
connType, devcId, devcParm, maxCurrent, minVoltage, MON_TYPE_CURRENT, MON_TYPE_POWER, MON_TYPE_VOLTAGE, mTypeMap, NETWORK_CONN_INVALID, psd, settlingTime, softMaxCurrent| Constructor and Description |
|---|
HeaterPsDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bulkPowerOff()
Turns off the bulk power supply.
|
void |
bulkPowerOn()
Turns on the bulk power supply.
|
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 |
enableOutput(int chanSet,
boolean enable)
Enables/disables the output of a set of channels.
|
boolean |
getOutput(int chan)
Gets the output state.
|
boolean |
hasNoLoad(int chanSet)
Gets whether a "no load" error occurred.
|
boolean |
hasVoltError(int chanSet)
Gets whether a voltage setting error occurred.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
boolean |
isEnabled(int chanSet)
Gets the enabled state of a set of channels.
|
protected void |
maintainPower()
Maintains the power for all channels at their set values.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all heater channels as a group.
|
double |
readCurrent(int chan)
Reads the current.
|
double |
readVoltage(int chan)
Reads the voltage.
|
void |
setColdPowerWeights(double[] weights)
Sets cold trim heat power weight factors.
|
void |
setCryoPowerWeights(double[] weights)
Sets cryo trim heat power weight factors.
|
void |
setCurrent(int chan,
double value)
Sets the current.
|
void |
setOutput(int chan,
boolean value)
Sets the output state.
|
void |
setPower(int chanSet,
double value)
Sets the power for a set of channels.
|
void |
setVoltage(int chan,
double value)
Sets the voltage.
|
build, getConnType, getDevcId, getDevcParm, getMaxChannel, getMinChannel, getPower, setOnlineaddLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 PowerDevice@ConfigurationParameterChanger public final void setColdPowerWeights(double[] weights)
weights - 6-element array of weights for cold trim heaters@ConfigurationParameterChanger public final void setCryoPowerWeights(double[] weights)
weights - 6-element array of weights for cryo trim heatersprotected 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 enableOutput(int chanSet,
boolean enable)
enableOutput in class PowerDevicechanSet - The channel set (cryo or cold)enable - Whether to enablepublic boolean isEnabled(int chanSet)
isEnabled in class PowerDevicechanSet - The channel set (cryo or cold)public void setPower(int chanSet,
double value)
setPower in class PowerDevicechanSet - The channel set (cryo or cold)value - The power to set, or NaN to use current valueprotected void maintainPower()
maintainPower in class PowerDevicepublic boolean hasVoltError(int chanSet)
hasVoltError in class PowerDevicechanSet - The channel set (cryo or cold)public boolean hasNoLoad(int chanSet)
hasNoLoad in class PowerDevicechanSet - The channel set (cryo or cold)public void setOutput(int chan,
boolean value)
throws org.lsst.ccs.drivers.commons.DriverException
setOutput in class PowerDevicechan - The hardware channelvalue - The output state to set, true or falseorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getOutput in class PowerDevicechan - The hardware channelorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(int chan,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
setVoltage in class PowerDevicechan - The hardware channelvalue - The voltage to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in class PowerDevicechan - The hardware channelorg.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 chan)
throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in class PowerDevicechan - The hardware channelorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION, description="Turn on the bulk power supply") public void bulkPowerOn() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION, description="Turn off the bulk power supply") public void bulkPowerOff() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2020 LSST. All rights reserved.