public class Chiller
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
Chiller.ErrorWords
Subclass to hold error and warning words from Chiller Controller
|
static class |
Chiller.EventRegister
Enumeration of bits in Event Register
|
static class |
Chiller.FParam
Enumeration of chiller parameters to be checked after Set commands
|
static class |
Chiller.Life
Enumeration of quantities returned by LIFETIME query
|
static class |
Chiller.Query
Enumeration of all "Immediate" Query/Read commands to Chiller,
^ except QFA and REA (both handled separately).
|
static class |
Chiller.SetParam
Enumeration of Chiller Commans which set parameters
Some commands set more than one parameter,
The information included can be used to verify settings
|
static class |
Chiller.StatusRegister
Enumeration of bits in Status Register
|
org.lsst.ccs.drivers.ascii.Ascii.DataBits, org.lsst.ccs.drivers.ascii.Ascii.FlowCtrl, org.lsst.ccs.drivers.ascii.Ascii.Option, org.lsst.ccs.drivers.ascii.Ascii.Parity, org.lsst.ccs.drivers.ascii.Ascii.StopBits, org.lsst.ccs.drivers.ascii.Ascii.Terminator| Constructor and Description |
|---|
Chiller()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearErrors()
Clear chiller error and warning bits.
|
void |
clearGuiErrorScreen()
Clear error screen on chiller-controller gui
|
String |
decodeEvtReg()
Decode event register
|
String |
decodeStatusReg()
Decode status register
|
Chiller.ErrorWords |
getErrorWords()
Extract and return error and warning words
|
double |
getFlow(Chiller.Query query)
Return flow rate (reading or setpoint)
|
double[] |
getHeatCool()
Return heating and cooling as percentages (of maximum capacity?).
|
int |
getLifetime(Chiller.Life life)
Return a Lifetime quantity
|
double |
getPressure(Chiller.Query query)
Return a pressure reading
|
int |
getStatusReg()
Get status register
|
double |
getTemperature(Chiller.Query query)
Return any temperature (reading or set point)n as a double
|
String |
listQueries()
List enumerared queries
|
String |
listStatusBits()
List Status Register bits
|
void |
loadParams()
Restore all chiller F# parameters from active non-volatile memory
|
void |
lockGui(boolean lock)
Lock or unlock GUI
|
protected static String |
makeCommandString(String command,
String... args)
Makes a command string (borrowed from TestAscii)
|
void |
open(String host)
Open a connection to the chiller using default port
|
void |
open(String host,
int port)
Open a connection to the chiller
|
String |
queryChiller(Chiller.Query query)
^ Send an enumerated query to Chiller and receive response
|
void |
quitControl()
Stop controlling temperature
|
String |
readParameter(int index)
Read a chiller setup parameter
|
void |
saveParams()
Save all current chiller F# parameters to active non-volatile memory
|
void |
sendDirectCommand(String command,
String... args)
Directly send command string to chiller/
For temporary use, to allow using non-implemented commands, allowed
only in debug mode.
|
void |
setDebug(boolean on_off)
Set debug mode true or false
|
void |
setFlow(double value)
Set chilled fluid flow rate.
|
void |
setParamCommand(Chiller.SetParam setParam,
double... values)
Implement parameter-setting command (enumerated in SetParam).
|
void |
setTemperature(double value)
Go to a temperature using default ramp.
|
void |
setTemperatureWithRamp(double value,
double ramp)
Go to a temperature using specified ramp.
|
close, closeSilent, flush, getConnTimeout, getTimeout, isDropEcho, isOpen, makeDataCharacteristics, open, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setConnTimeout, setConnTimeout, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic void open(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
host - The host to connect toport - Telnet portorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String host) throws org.lsst.ccs.drivers.commons.DriverException
host - The host to connect toorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setDebug(boolean on_off)
on_off - public String listQueries()
public String listStatusBits()
public String queryChiller(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
query - enumerated command identifierorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getTemperature(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
Query - enumeraion of desired temperature readingorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getFlow(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
Query - enumeraion of desired flow readingorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getPressure(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
Query - enumeraion of desired pressure readingorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getHeatCool()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getLifetime(Chiller.Life life) throws org.lsst.ccs.drivers.commons.DriverException
Enumerated - Lifeorg.lsst.ccs.drivers.commons.DriverExceptionpublic String decodeEvtReg() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getStatusReg()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String decodeStatusReg() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic Chiller.ErrorWords getErrorWords() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readParameter(int index) throws org.lsst.ccs.drivers.commons.DriverException
index - DriverExceptiomorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setParamCommand(Chiller.SetParam setParam, double... values) throws org.lsst.ccs.drivers.commons.DriverException
SetParam - (specifies command to Chiller controller)Arguments - to send to Chillerorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setTemperature(double value)
throws org.lsst.ccs.drivers.commons.DriverException
double - temperature value (degrees C)Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setTemperatureWithRamp(double value,
double ramp)
throws org.lsst.ccs.drivers.commons.DriverException
double - temperature value (degrees C)double - ramp (degrees C per minute)Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverExceptionpublic void quitControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFlow(double value)
throws org.lsst.ccs.drivers.commons.DriverException
double - flow-rate value (gallons per minute)Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverExceptionpublic void clearErrors()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void clearGuiErrorScreen()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void lockGui(boolean lock)
throws org.lsst.ccs.drivers.commons.DriverException
boolean - lock/unlock if true/falseorg.lsst.ccs.drivers.commons.DriverExceptionpublic void saveParams()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void loadParams()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void sendDirectCommand(String command, String... args) throws org.lsst.ccs.drivers.commons.DriverException
chiller - command Stringargs - (if any)DeiverExceptiomorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2022 LSST. All rights reserved.