public class VacSimPlutoDevice extends VacPlutoDevice
condsUsed, latchesUsed, NUM_SWITCHES, SW_BLOCK_CVPUMP, SW_BLOCK_CVSTAT, SW_BLOCK_HVPUMP, SW_BLOCK_HVSTAT, SW_OPEN_VCR00, SW_OPEN_VCR01, SW_OPEN_VCR02, SW_OPEN_VCR03, SW_OPEN_VCR04, SW_OPEN_VHX00| Constructor and Description |
|---|
VacSimPlutoDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
clearLatch(int cond)
Clears a latched condition.
|
protected void |
close()
Closes device connection.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
Boolean |
isConditionActive(int cond)
Gets whether a condition is active.
|
Boolean |
isLatchActive(int cond)
Gets whether a latched condition is active.
|
Boolean |
isLatchLatched(int cond)
Gets whether a latched condition is latched.
|
Boolean |
isPLCActive()
Tests whether the PLC is active
|
Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all referenced channels.
|
void |
setCondition(int cond,
boolean set) |
void |
setLatchActive(int cond) |
void |
setLatchLatched(int cond) |
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
getConditionIds, getLatchIdscheckHwLine, isHwLineSet, readAddBit, readAddInt, readAddWord, readBit, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkHardware, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected void initDevice()
initDevice in class VacPlutoDeviceprotected 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(String name, int hwChan, String type, String subtype)
checkChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringprotected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDeviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public Boolean isPLCActive()
isPLCActive in class org.lsst.ccs.subsystem.common.devices.pluto.PlutoDevicepublic void setSwitchOn(int sw,
boolean on)
setSwitchOn in class VacPlutoDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in class VacPlutoDevicesw - The switch number.public Boolean isLatchActive(int cond)
isLatchActive in class VacPlutoDevicecond - The condition numberpublic Boolean isLatchLatched(int cond)
isLatchLatched in class VacPlutoDevicecond - The condition numberpublic void clearLatch(int cond)
clearLatch in class VacPlutoDevicecond - The condition numberpublic Boolean isConditionActive(int cond)
isConditionActive in class VacPlutoDevicecond - The condition number@Command(type=ACTION)
public void setLatchActive(@Argument(description="Latched condition number")
int cond)
@Command(type=ACTION)
public void setLatchLatched(@Argument(description="Latched condition number")
int cond)
@Command(type=ACTION)
public void setCondition(@Argument(description="Running condition number")
int cond,
@Argument(description="Condition on state")
boolean set)
Copyright © 2020 LSST. All rights reserved.