public class SimCompPlutoDevice extends CompPlutoDevice
NUM_COLD_SWITCHES, NUM_CRYO_SWITCHES, SW_ENABLE, SW_HEATER, SW_LIGHTS| Constructor and Description |
|---|
SimCompPlutoDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes device connection.
|
String |
getChannelNames() |
String |
getConditionNames() |
ConditionState |
getConditionState(int cond)
Gets the state of a condition.
|
int |
getErrorCode()
Gets the PLC error code.
|
String |
getLatchNames() |
LatchState |
getLatchState(int cond)
Gets the state of a latched condition.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
Boolean |
isPLCActive()
Checks whether PLC is active
|
Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
void |
resetLatches()
Resets all latches.
|
void |
setChannelValue(String chan,
double value) |
void |
setCondition(String cond,
boolean set) |
void |
setLatchActive(String cond) |
void |
setLatchLatched(String cond) |
void |
setLatchWarning(String cond) |
void |
setPLCActive(boolean set) |
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
void |
setType(int type)
Sets the compressor type.
|
checkHwLine, isHwLineSet, readAddBit, readAddInt, readAddWord, readBit, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkChannel, checkLine, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initChannel, initSensors, isEnabled, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlineprotected void initDevice()
initDevice in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected void close()
close in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicech - The channel to checkException - if there is a parameter errorprotected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicech - The channel to readpublic void setType(int type)
setType in class CompPlutoDevicetype - The type (cold or cryo)public void setSwitchOn(int sw,
boolean on)
setSwitchOn in interface Compressor.SwitchDevicesetSwitchOn in class CompPlutoDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in interface Compressor.SwitchDeviceisSwitchOn in class CompPlutoDevicesw - The switch number.public LatchState getLatchState(int cond)
getLatchState in class CompPlutoDevicecond - The condition numberpublic ConditionState getConditionState(int cond)
getConditionState in class CompPlutoDevicecond - The condition numberpublic void resetLatches()
resetLatches in class CompPlutoDevicepublic Boolean isPLCActive()
isPLCActive in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicepublic int getErrorCode()
getErrorCode in class CompPlutoDevice@Command(type=QUERY, description="Get the list of latched condition names") public String getLatchNames()
@Command(type=ACTION, description="Make a latched condition active") public void setLatchActive(@Argument(description="Latched condition name") String cond) throws RefrigException
RefrigException@Command(type=ACTION, description="Make a latched condition latched") public void setLatchLatched(@Argument(description="Latched condition name") String cond) throws RefrigException
RefrigException@Command(type=ACTION, description="Put a latched condition into warning state") public void setLatchWarning(@Argument(description="Latched condition name") String cond) throws RefrigException
RefrigException@Command(type=QUERY, description="Get the list of condition names") public String getConditionNames()
@Command(type=ACTION, description="Set the state of a condition") public void setCondition(@Argument(description="Running condition name") String cond, @Argument(description="Condition on state") boolean set) throws RefrigException
RefrigException@Command(type=ACTION, description="Set a channel value") public void setChannelValue(@Argument(description="Channel name") String chan, @Argument(description="Channel value") double value) throws RefrigException
RefrigException@Command(type=QUERY, description="Get the list of channel names") public String getChannelNames()
@Command(type=ACTION, description="Set whether PLC is active") public void setPLCActive(@Argument(description="PLC active state") boolean set)
Copyright © 2023 LSST. All rights reserved.