public class VacSimPlutoDevice extends VacPlutoDevice
NUM_SWITCHES, SW_BLOCK_CR_TURBO, SW_BLOCK_CR_VAC, SW_BLOCK_HX_TURBO, SW_BLOCK_HX_VAC, 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 |
setSwitch(int sw,
boolean on)
Sets a switch on or off.
|
getSwitchDevice, pressButtoncheckHwLine, isHwLineSet, readAddBit, readAddInt, readAddWord, readBit, setHwLine, toggleBit, writeBit, writeRegisteraddLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setDisabled, setLine, setLineWarm, setOnline, setOutputLines, start, 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 setSwitch(int sw,
boolean on)
setSwitch in interface SwitchDevicesetSwitch in class VacPlutoDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in interface SwitchDeviceisSwitchOn 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 © 2022 LSST. All rights reserved.