
public class CompSimMaq20Device extends CompMaq20Device
CHAN_BYPASS_VALVE, CHAN_COOLANT_VALVE, NUM_COLD_SWITCHES, NUM_CRYO_SWITCHES, SW_BYPASS_VALVE, SW_COOLANT_VALVE, 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 |
|---|
CompSimMaq20Device() |
| 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.
|
double |
getBypassValve()
Gets the bypass valve position.
|
String |
getChannelNames() |
double |
getCoolantValve()
Gets the coolant 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(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all referenced channels.
|
void |
setBypassValve(double posn)
Sets the bypass valve position.
|
void |
setChannelValue(String chan,
double value) |
void |
setCoolantValve(double posn)
Sets the coolant valve position.
|
void |
setSwitchOn(int sw,
boolean on)
Sets a switch on or off.
|
void |
setType(int type)
Sets the compressor type.
|
getModuleCount, getModuleData, initChanneladdLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, 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(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if there is a parameter errorprotected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.common.devices.dataforth.Maq20DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.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 setBypassValve(double posn)
setBypassValve in class CompMaq20Deviceposn - Requested position (0 - 1)public double getBypassValve()
getBypassValve in class CompMaq20Devicepublic void setCoolantValve(double posn)
setCoolantValve in class CompMaq20Deviceposn - Requested position (0 - 1)public double getCoolantValve()
getCoolantValve in class CompMaq20Device@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 © 2020 LSST. All rights reserved.