
public class MCCDevice
extends org.lsst.ccs.monitor.Device
| Constructor and Description |
|---|
MCCDevice() |
MCCDevice(String dName,
String serialNo)
Constructor.
|
| 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 |
checkHwLine(String name,
int line)
Checks an output line number.
|
protected void |
close()
Closes the connection.
|
protected void |
initChannel(String name,
int id,
int hwChan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected Boolean |
isHwLineSet(int line)
Gets the set state of an output line.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
setHwLine(int line,
boolean on)
Sets an output line on or off.
|
addChannel, addLine, checkHardware, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MCCDevice(String dName, String serialNo)
dName - The MCC device nameserialNo - The USB serial numberpublic MCCDevice()
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected void initChannel(String name, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.Devicename - The channel nameid - The channel IDhwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.subtype - The channel subtype returned by checkChannel.protected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.protected void checkHwLine(String name, int line) throws Exception
checkHwLine in class org.lsst.ccs.monitor.Devicename - The name of the output line.line - The hardware line number of the output line.Exception - If line invalidprotected void setHwLine(int line,
boolean on)
setHwLine in class org.lsst.ccs.monitor.Deviceline - The output line number.on - The on state to set: true or falseprotected Boolean isHwLineSet(int line)
isHwLineSet in class org.lsst.ccs.monitor.Deviceline - The output line number.Copyright © 2019 LSST. All rights reserved.