public class CryoCon24cDevice extends org.lsst.ccs.monitor.Device implements CryoDevice
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CURR_TEMP |
static int |
CHAN_HTR_1 |
static int |
CHAN_HTR_2 |
static int |
CHAN_PID_D_1 |
static int |
CHAN_PID_D_2 |
static int |
CHAN_PID_I_1 |
static int |
CHAN_PID_I_2 |
static int |
CHAN_PID_P_1 |
static int |
CHAN_PID_P_2 |
static int |
CHAN_RUN_TEMP |
static int |
CHAN_SETPOINT_1 |
static int |
CHAN_SETPOINT_2 |
static int |
CHAN_TEMP_A |
static int |
CHAN_TEMP_B |
static int |
CHAN_TEMP_C |
static int |
CHAN_TEMP_CHNG |
static int |
CHAN_TEMP_D |
static int |
CHAN_TEMP_STDDEV |
protected Map<String,String> |
channelTypes |
protected Map<String,String> |
channelUnits |
String |
current_channel |
String |
current_channel2 |
int |
current_loop |
protected double |
d_gainLoop1 |
protected double |
d_gainLoop2 |
protected double |
i_gainLoop1 |
protected double |
i_gainLoop2 |
protected double[] |
maxSetPoints |
static int |
NUM_CHANS |
protected double |
p_gainLoop1 |
protected double |
p_gainLoop2 |
| Constructor and Description |
|---|
CryoCon24cDevice()
No-argument 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.
|
void |
close()
Closes the connection.
|
void |
enableOtd(boolean enab)
Sets OTD enabled state
|
double |
get_init_temp(int cfgstate) |
String |
getCurrent_channel() |
String |
getCurrent_channel2() |
int |
getCurrent_loop() |
double |
getHeaterMax(int loop)
Get maximum heater power for Loop [1-4]
|
String |
getHeaterRange(int loop)
Get Heater Range for Loop [1-4]
|
double |
getHtrRead(int loop)
Get heater reading for specified loop
|
char |
getLoopSource(int loop)
Get Source for Loop returns Channels A through D
|
double |
getMaxSetPoint(int loop)
Get maximum set point for loop
|
char |
getOtdSource()
Gets OTD source channel
|
double |
getOtdTemp()
Gets OTD temperature limit
|
double |
getPID_D(int loop)
Get PI[D] parameter for specified loop
|
double |
getPID_I(int loop)
Get P[I]D parameter for specified loop
|
double |
getPID_P(int loop)
Get [P]ID parameter for specified loop
|
double |
getRunTemp(int cfgstate)
Return the temperature setting for acquisitions
|
double |
getSetPoint(int loop)
Get Source for Loop returns Channels A through D
|
int |
getState()
Gets the device state
|
double |
getTemp(String channel)
Get temperature reading for channels A through D
|
double |
getTempChange()
Return the rate of change in T/min of the temperature values
|
double |
getTempStdDev()
Return the standard deviation of the temperature values
|
String |
getType(String channel)
Get sensor type for a temperature channel
|
char |
getUnit(String channel)
Get Temperature Units Channels A through D *
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Initializes the connection.
|
boolean |
isInControl()
Get control mode
|
boolean |
isOtdEnabled()
Gets whether OTD is enabled
|
void |
processAlarm(int event,
int parm)
Handles alarm events.
|
int |
rampTemp(double duration,
double value,
int nsteps)
Ramps to the desired temperature over a given time and for nsteps
|
int |
rampTemp(double duration,
double t_target,
int nsteps,
int iwloop,
int ioloop,
String wchan,
String ochan,
double delta_warm)
Ramps to the desired temperature over a given time and for nsteps
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setChannelTypes(Map<String,String> channelTypes)
Sets channelTypes map
|
void |
setChannelUnits(Map<String,String> channelUnits)
Sets channelUnits map
|
void |
setCurrent_channel(String current_channel) |
void |
setCurrent_channel2(String current_channel2) |
void |
setCurrent_loop(int current_loop) |
void |
setHeaterMax(int loop,
double power)
Set maximum heater power for Loop [1-4]
|
void |
setHeaterRange(int loop,
String range)
Set Heater Range for Loop [1-4]
|
void |
setLoopSource(int loop,
String channel)
Set Source Channel for Loop
|
void |
setMaxSetPoint(int loop,
double temp)
Set MaxSetPoint for Loop [1-4]
|
void |
setMaxSetPoints(double[] maxSetPoints)
Sets maxSetPoints array
|
void |
setOtdSource(String channel)
Sets OTD source channel
|
void |
setOtdTemp(double temp)
Sets OTD temperature limit
|
void |
setRunTemp(double temp,
int cfgstate)
Set the temperature setting for acquisitions
|
void |
setSetPoint(int loop,
double temp)
Set SetPoint for Loop [1-4]
|
void |
setState(int istate)
Sets the device state
|
void |
setToControl()
Put loops in control mode
|
void |
setType(String channel,
String typ)
Set sensor type for a temperature channel
|
void |
setUnit(String channel,
String unit)
Set Temperature Units for Channels A through D
|
String |
showIdentification()
Displays Temp Control 24C identification.
|
void |
stopControl()
Take loops out of control mode
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getGroupForChannel, getName, getOutputLines, getPath, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic static final int CHAN_CURR_TEMP
public static final int CHAN_RUN_TEMP
public static final int CHAN_TEMP_STDDEV
public static final int CHAN_HTR_1
public static final int CHAN_HTR_2
public static final int CHAN_TEMP_A
public static final int CHAN_TEMP_B
public static final int CHAN_TEMP_C
public static final int CHAN_TEMP_D
public static final int CHAN_PID_P_1
public static final int CHAN_PID_I_1
public static final int CHAN_PID_D_1
public static final int CHAN_PID_P_2
public static final int CHAN_PID_I_2
public static final int CHAN_PID_D_2
public static final int CHAN_TEMP_CHNG
public static final int CHAN_SETPOINT_1
public static final int CHAN_SETPOINT_2
public static final int NUM_CHANS
public String current_channel
public String current_channel2
public int current_loop
@ConfigurationParameter protected double[] maxSetPoints
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double p_gainLoop1
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double i_gainLoop1
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double d_gainLoop1
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double p_gainLoop2
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double i_gainLoop2
@ConfigurationParameter(category="Cryocon",
isFinal=true)
protected double d_gainLoop2
@ConfigurationParameterChanger(propertyName="maxSetPoints")
public void setMaxSetPoints(double[] maxSetPoints)
throws org.lsst.ccs.drivers.commons.DriverException
maxSetPoints - The 4-element array of set pointsorg.lsst.ccs.drivers.commons.DriverException@ConfigurationParameterChanger(propertyName="channelTypes") public void setChannelTypes(Map<String,String> channelTypes) throws org.lsst.ccs.drivers.commons.DriverException
channelTypes - The map of channels to unitsorg.lsst.ccs.drivers.commons.DriverException@ConfigurationParameterChanger(propertyName="channelUnits") public void setChannelUnits(Map<String,String> channelUnits) throws org.lsst.ccs.drivers.commons.DriverException
channelUnits - The map of channels to unitsorg.lsst.ccs.drivers.commons.DriverExceptionprotected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Devicepublic 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 - hwChan - type - subtype - Exceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.monitor.Devicechan - type - subtype - protected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicechan - type - public void processAlarm(int event,
int parm)
event - The event typeparm - The event parameter@Command(name="showident",
description="Show Temp Control 24C identification")
public String showIdentification()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY,
name="getMaxSetPoint",
description="Retrieve MaxSetPoint for loop")
public double getMaxSetPoint(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getMaxSetPoint in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(name="setMaxSetPoint",
description="setMaxSetPoint for loop")
public void setMaxSetPoint(@Argument(name="loop",description="loop number [1-4]")
int loop,
@Argument(name="temp",description="temperature")
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
setMaxSetPoint in interface CryoDeviceloop - temp - org.lsst.ccs.drivers.commons.DriverException@Command(name="getSetPoint",
description="Retrieve setPoint for loop")
public double getSetPoint(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getSetPoint in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(name="setSetPoint",
description="setSetPoint for loop")
public void setSetPoint(@Argument(name="loop",description="loop number [1-4]")
int loop,
@Argument(name="temp",description="temperature")
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
setSetPoint in interface CryoDeviceloop - temp - org.lsst.ccs.drivers.commons.DriverException@Command(name="getHtrRead",
description="Retrieve heater reading for loop")
public double getHtrRead(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getHtrRead in interface CryoDeviceloop - The loop numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="getPID_P",
description="Retrieve PID parameter P for loop")
public double getPID_P(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getPID_P in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(name="getPID_I",
description="Retrieve PID parameter I for loop")
public double getPID_I(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getPID_I in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(name="getPID_D",
description="Retrieve PID parameter D for loop")
public double getPID_D(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getPID_D in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY,
name="getLoopSource",
description="Retrieve source channel for loop")
public char getLoopSource(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
getLoopSource in interface CryoDeviceloop - org.lsst.ccs.drivers.commons.DriverException@Command(name="setLoopSource",
description="Set source channel for loop")
public void setLoopSource(@Argument(name="loop",description="loop number [1-4]")
int loop,
@Argument(name="channel",description="channel [A-D]")
String channel)
throws org.lsst.ccs.drivers.commons.DriverException
setLoopSource in interface CryoDeviceloop - The loop numberchannel - The temperature channel (A-D)org.lsst.ccs.drivers.commons.DriverException@Command(name="getHeaterRange",
description="Get heater range for loop")
public String getHeaterRange(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="setHeaterRange",
description="setHeaterRange for loop")
public void setHeaterRange(@Argument(name="loop",description="loop number [1-4]")
int loop,
@Argument(name="range",description="hi,low,mid")
String range)
throws org.lsst.ccs.drivers.commons.DriverException
setHeaterRange in interface CryoDeviceloop - The loop numberrange - The rangeorg.lsst.ccs.drivers.commons.DriverException@Command(name="getHeaterMax",
description="Get maximum heater power for loop")
public double getHeaterMax(@Argument(name="loop",description="loop number [1-4]")
int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="setHeaterMax",
description="Set maximum heater power for loop")
public void setHeaterMax(@Argument(name="loop",description="loop number [1-4]")
int loop,
@Argument(name="power",description="heater power (%)")
double power)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop numberpower - The maximum heater power (%)org.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY,
name="getTemp",
description="Retrieve temperature info")
public double getTemp(@Argument(name="channel",description="Temp Channel to read")
String channel)
throws org.lsst.ccs.drivers.commons.DriverException
getTemp in interface CryoDevicechannel - The channel (A-D)org.lsst.ccs.drivers.commons.DriverException@Command(name="setRunTemp",
description="Sets the temp value for acquisition")
public void setRunTemp(double temp,
int cfgstate)
setRunTemp in interface CryoDevicetemp - The temperaturecfgstate - The configuration index@Command(type=QUERY,
name="getRunTemp",
description="Returns the temp value for acquisition")
public double getRunTemp(int cfgstate)
getRunTemp in interface CryoDevicecfgstate - The configuration index@Command(type=QUERY,
description="Return the standard deviation of the temperature values")
public double getTempStdDev()
getTempStdDev in interface CryoDevice@Command(type=QUERY,
description="Return the temperature change over the sample period in degrees/minute")
public double getTempChange()
getTempChange in interface CryoDevice@Command(type=QUERY,
name="rampTemp",
description="ramp the temperature to the desired point")
public int rampTemp(@Argument(name="duration",description="number of seconds to ramp from current voltage to desired voltage")
double duration,
@Argument(name="value",description="Temp to ramp to")
double value,
@Argument(name="nsteps",description="number of steps")
int nsteps)
rampTemp in interface CryoDeviceduration - value - nsteps - @Command(type=QUERY,
name="rampTemp",
description="ramp the temperature to the desired point")
public int rampTemp(@Argument(name="duration",description="number of seconds to ramp from current voltage to desired voltage")
double duration,
@Argument(name="t_target",description="Temp to ramp to")
double t_target,
@Argument(name="nsteps",description="number of steps")
int nsteps,
@Argument(name="warmer_loop",description="number of steps")
int iwloop,
@Argument(name="other_loop",description="number of steps")
int ioloop,
@Argument(name="warm_temp_chan",description="number of steps")
String wchan,
@Argument(name="other_temp_chan",description="number of steps")
String ochan,
@Argument(name="delta_warm",description="Temp to ramp to")
double delta_warm)
rampTemp in interface CryoDeviceduration - t_target - nsteps - iwloop - ioloop - wchan - ochan - delta_warm - @Command(type=QUERY,
name="getUnit",
description="Retrieve temperature units")
public char getUnit(@Argument(name="channel",description="Temp Channel to read")
String channel)
throws org.lsst.ccs.drivers.commons.DriverException
getUnit in interface CryoDevicechannel - org.lsst.ccs.drivers.commons.DriverException@Command(name="setUnit",
description="Set temperature units")
public void setUnit(@Argument(name="channel",description="Temp Channel to set")
String channel,
@Argument(name="units",description="Units in [K|C|F|S]")
String unit)
throws org.lsst.ccs.drivers.commons.DriverException
setUnit in interface CryoDevicechannel - The temperature channel (A-D)unit - The units stringorg.lsst.ccs.drivers.commons.DriverException@Command(name="getType",
description="Get sensor type")
public String getType(@Argument(name="channel",description="Temp Channel to set")
String channel)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The temperature channel (A-D)org.lsst.ccs.drivers.commons.DriverException@Command(name="setType",
description="Set sensor type : DIODE|ACR|PTC100|PTC1K|NTC10UA|TC70|NONE")
public void setType(@Argument(name="channel",description="Temp Channel to set")
String channel,
@Argument(name="type",description="Calib. curve type [DIODE|ACR|PTC100|PTC1K|NTC10UA|TC70|NONE]")
String typ)
throws org.lsst.ccs.drivers.commons.DriverException
setType in interface CryoDevicechannel - The temperature channel (A-D)typ - The sensor typeorg.lsst.ccs.drivers.commons.DriverException@Command(name="isOtdEnabled",
description="Get whether OTD system enabled")
public boolean isOtdEnabled()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="enableOtd",
description="Set OTD system enabled state")
public void enableOtd(@Argument(name="enab",description="Whether to enable OTD system")
boolean enab)
throws org.lsst.ccs.drivers.commons.DriverException
enab - Whether to enable OTD systemorg.lsst.ccs.drivers.commons.DriverException@Command(name="getOtdSource",
description="Get source channel for the OTD system")
public char getOtdSource()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setOtdSource",
description="Set source channel for the OTD system")
public void setOtdSource(@Argument(name="channel",description="channel [A-D]")
String channel)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The OTD source channel (A-D)org.lsst.ccs.drivers.commons.DriverException@Command(name="getOtdTemp",
description="Get temperature limit for the OTD system")
public double getOtdTemp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setOtdTemp",
description="Set temperature limit for the OTD system")
public void setOtdTemp(@Argument(name="temp",description="Temperature")
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
temp - The temperature limitorg.lsst.ccs.drivers.commons.DriverException@Command(name="setToControl",
description="put loops in control mode")
public void setToControl()
throws org.lsst.ccs.drivers.commons.DriverException
setToControl in interface CryoDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="stopControl",
description="Take loops out of control mode")
public void stopControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="isInControl",
description="is the CryoCon24c in control mode")
public boolean isInControl()
throws org.lsst.ccs.drivers.commons.DriverException
isInControl in interface CryoDeviceorg.lsst.ccs.drivers.commons.DriverException@Command public int getState()
getState in interface CryoDevice@Command public void setState(int istate)
setState in interface CryoDeviceistate - The state to set@Command public String getCurrent_channel()
getCurrent_channel in interface CryoDevice@Command public String getCurrent_channel2()
getCurrent_channel2 in interface CryoDevice@Command public void setCurrent_channel(String current_channel)
setCurrent_channel in interface CryoDevice@Command public void setCurrent_channel2(String current_channel2)
setCurrent_channel2 in interface CryoDevice@Command public int getCurrent_loop()
getCurrent_loop in interface CryoDevice@Command public void setCurrent_loop(int current_loop)
setCurrent_loop in interface CryoDevicepublic double get_init_temp(int cfgstate)
get_init_temp in interface CryoDeviceCopyright © 2019 LSST. All rights reserved.