public class SimCompMaq20Device extends CompMaq20Device
org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.Maq20Control, org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.ModuleData, org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.ModuleDefCHAN_COOLANT_VALVE, CHAN_EEPR_VALVE, CHAN_HGB_VALVE, NUM_COLD_SWITCHES, NUM_CRYO_SWITCHES, SW_BYPASS_VALVE, SW_COOLANT_VALVE, SW_OIL_SEP_HEATER, SW_ORIFICE_VALVE, SW_SURGE_HEATERCHAN_FREQUENCY, CHAN_PULSE_COUNT, CHAN_PULSE_RPM, CHAN_PWM_LOW1, CHAN_PWM_LOW2, CHAN_PWM_PERIOD, controlMap, DISC_FUNC_FREQ, DISC_FUNC_NONE, DISC_FUNC_PULSE, DISC_FUNC_PWM, maq, modules, node, NUM_CHAN_DINP, NUM_CHAN_DIOH, NUM_CHAN_DIOL, NUM_CHAN_DOUT, NUM_CHAN_FREQ, NUM_CHAN_IVD, NUM_CHAN_IVO, NUM_CHAN_IVS, NUM_CHAN_PULSE, NUM_CHAN_PWM, NUM_CHAN_RTD, NUM_CHAN_TC, serials| Constructor and Description |
|---|
SimCompMaq20Device() |
| 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 device connection.
|
String |
getChannelNames() |
double |
getValvePosition(int valve)
Gets a valve position.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
Boolean |
isSwitchOn(int sw)
Gets the on state of a switch.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
void |
setChannelValue(String chan,
double value) |
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
void |
setType(int type)
Sets the compressor type.
|
void |
setValvePosition(int valve,
double posn)
Sets a valve position.
|
furtherInitialization, getMaq20, getModuleCount, getModuleData, initChannel, setOnlineaddLine, 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, testOnlineprotected void initDevice()
initDevice in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Deviceprotected void close()
close in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Deviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Devicech - The channel to check.Exception - if there is a parameter errorprotected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Devicech - The Channel to read.public void setType(int type)
setType in class CompMaq20Devicetype - The type (cold or cryo)public void setSwitchOn(int sw,
boolean on)
setSwitchOn in interface Compressor.SwitchDevicesetSwitchOn in class CompMaq20Devicesw - The switch number.on - The on state to set: true or falsepublic Boolean isSwitchOn(int sw)
isSwitchOn in interface Compressor.SwitchDeviceisSwitchOn in class CompMaq20Devicesw - The switch number.public void setValvePosition(int valve,
double posn)
setValvePosition in class CompMaq20Devicevalve - The valve channel numberposn - Requested position (0 - 1)public double getValvePosition(int valve)
getValvePosition in class CompMaq20Devicevalve - The valve channel number@Command(type=ACTION, description="Set a channel value") public void setChannelValue(@Argument(description="Channel name") String chan, @Argument(description="Channel value") double value) throws RefrigException
RefrigException@Command(type=QUERY, description="Get the list of channel names") public String getChannelNames()
Copyright © 2022 LSST. All rights reserved.