public class MpmSimPlutoDevice extends MpmPlutoDevice
NUM_SWITCHES, SW_BLOCK_COLD_REFG, SW_BLOCK_CRYO_REFG| Constructor and Description |
|---|
MpmSimPlutoDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes device connection.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
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 |
setSwitch(int sw,
boolean on)
Sets a switch on or off.
|
checkHwLine, 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, setDisabled, setLine, setLineWarm, setOnline, setOutputLines, 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(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 class MpmPlutoDevicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in class MpmPlutoDevicesw - The switch number.Copyright © 2022 LSST. All rights reserved.