public class Maq20Device
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static interface |
Maq20Device.Maq20Control
Inner control interface.
|
static class |
Maq20Device.ModuleData
Inner class for holding dynamic module data.
|
static class |
Maq20Device.ModuleDef
Inner class for holding static module type constants.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_FREQUENCY |
static int |
CHAN_PULSE_COUNT |
static int |
CHAN_PULSE_RPM |
static int |
CHAN_PWM_LOW1 |
static int |
CHAN_PWM_LOW2 |
static int |
CHAN_PWM_PERIOD |
protected Map<String,Maq20Device.Maq20Control> |
controlMap
Data fields.
|
static int |
DISC_FUNC_FREQ |
static int |
DISC_FUNC_NONE |
static int |
DISC_FUNC_PULSE |
static int |
DISC_FUNC_PWM |
protected org.lsst.ccs.drivers.dataforth.Maq20 |
maq |
protected String[] |
modules |
protected String |
node |
static int |
NUM_CHAN_DINP
Public constants
|
static int |
NUM_CHAN_DIOH
Public constants
|
static int |
NUM_CHAN_DIOL
Public constants
|
static int |
NUM_CHAN_DOUT
Public constants
|
static int |
NUM_CHAN_FREQ
Public constants
|
static int |
NUM_CHAN_IVD
Public constants
|
static int |
NUM_CHAN_IVO
Public constants
|
static int |
NUM_CHAN_IVS
Public constants
|
static int |
NUM_CHAN_PULSE
Public constants
|
static int |
NUM_CHAN_PWM
Public constants
|
static int |
NUM_CHAN_RTD
Public constants
|
static int |
NUM_CHAN_TC
Public constants
|
protected String[] |
serials |
| Constructor and Description |
|---|
Maq20Device() |
| 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 the connection.
|
protected void |
furtherInitialization()
Method to perform further initialization.
|
int |
getModuleCount()
Gets the number of defined modules.
|
Maq20Device.ModuleData |
getModuleData(int index)
Gets the module data with the specified index.
|
protected void |
initChannel(org.lsst.ccs.monitor.Channel ch)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
void |
setOnline(boolean state)
Sets the device online state (public version)
|
addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOutputLines, start, testOnlinepublic static final int NUM_CHAN_TC
public static final int NUM_CHAN_RTD
public static final int NUM_CHAN_IVS
public static final int NUM_CHAN_IVD
public static final int NUM_CHAN_IVO
public static final int NUM_CHAN_DIOL
public static final int NUM_CHAN_DIOH
public static final int NUM_CHAN_PULSE
public static final int NUM_CHAN_PWM
public static final int NUM_CHAN_FREQ
public static final int NUM_CHAN_DINP
public static final int NUM_CHAN_DOUT
public static final int CHAN_FREQUENCY
public static final int CHAN_PULSE_COUNT
public static final int CHAN_PULSE_RPM
public static final int CHAN_PWM_PERIOD
public static final int CHAN_PWM_LOW1
public static final int CHAN_PWM_LOW2
public static final int DISC_FUNC_NONE
public static final int DISC_FUNC_PULSE
public static final int DISC_FUNC_PWM
public static final int DISC_FUNC_FREQ
@LookupField(strategy=CHILDREN) protected final Map<String,Maq20Device.Maq20Control> controlMap
@ConfigurationParameter(category="Device",
isFinal=true,
units="unitless")
protected volatile String node
@ConfigurationParameter(category="Device",
maxLength=24,
isFinal=true,
units="unitless",
description="serial numbers of MAQ20 modules")
protected volatile String[] serials
protected String[] modules
protected final org.lsst.ccs.drivers.dataforth.Maq20 maq
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void furtherInitialization()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - Thrown if anything goes wrong with the initialization.protected void close()
close in class org.lsst.ccs.monitor.Devicepublic void setOnline(boolean state)
setOnline in class org.lsst.ccs.monitor.Devicestate - protected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicech - The Channel to check.Exception - if any errors found in the parameters.protected void initChannel(org.lsst.ccs.monitor.Channel ch)
initChannel in class org.lsst.ccs.monitor.Devicech - The channel to initialize.protected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.monitor.Devicech - The Channel to read.public int getModuleCount()
public Maq20Device.ModuleData getModuleData(int index)
index - The module indexCopyright © 2022 LSST. All rights reserved.