public class PathfinderPowerDevice
extends org.lsst.ccs.monitor.Device
implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
PathfinderPowerDevice.ChannelState
Inner class for saving the power state of a channel.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MON_TYPE_CURRENT |
protected static int |
MON_TYPE_POWER |
protected static int |
MON_TYPE_VOLTAGE |
protected static Map<String,Integer> |
mTypeMap |
protected int |
settlingTime |
| Constructor and Description |
|---|
PathfinderPowerDevice(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch) |
protected void |
close()
Closes the connection.
|
void |
enableOutput(int chan,
boolean enable)
Enables the output.
|
int |
getMaxChannel()
Gets the maximum channel number.
|
int |
getMinChannel()
Gets the minimum channel number.
|
double |
getPower(int chan)
Gets the power for a channel.
|
boolean |
hasCurrError(int chan)
Gets whether a current setting error occurred.
|
boolean |
hasNoLoad(int chan)
Gets whether a "no load" error occurred.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
boolean |
isEnabled(int chan)
Gets the enabled state.
|
protected void |
maintainPower()
Maintains the power for all channels at their set value.
|
void |
postInit() |
protected void |
setOnline(boolean online)
Sets the online state.
|
void |
setPower(int heaterId,
double fractionPower)
Sets the power.
|
addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOutputLines, start, testOnlineprotected static final int MON_TYPE_POWER
protected static final int MON_TYPE_VOLTAGE
protected static final int MON_TYPE_CURRENT
protected int settlingTime
public PathfinderPowerDevice(String name)
name - The device nameminChan - The minimum channel numbermaxChan - The maximum channel numberpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic int getMinChannel()
public int getMaxChannel()
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Devicepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecycleprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.monitor.DeviceExceptionprotected void setOnline(boolean online)
setOnline in class org.lsst.ccs.monitor.Deviceonline - The online state to set: true or falsepublic void enableOutput(int chan,
boolean enable)
chan - The hardware channelenable - The enabled state to setpublic void setPower(int heaterId,
double fractionPower)
chan - The hardware channelfractionPower - The power to set, or NaN to use current valueprotected void maintainPower()
public double getPower(int chan)
chan - The hardware channelpublic boolean isEnabled(int chan)
chan - The hardware channelpublic boolean hasCurrError(int chan)
chan - The hardware channelpublic boolean hasNoLoad(int chan)
chan - The hardware channelCopyright © 2024 LSST. All rights reserved.