public class Chiller
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
Chiller.EventRegister
Enumeration of bits in Event Register
|
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 (until it is nderstood) RP.
|
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 |
|---|---|
String |
decodeEvtReg()
Decode event register
|
String |
decodeStatusReg()
Decode status register
|
int |
getFlow(Chiller.Query query)
Return flow rate (reading or setpoint)
|
int |
getLifetime(Chiller.Life life)
Return a Lifetime quantity
|
double |
getTemperature(Chiller.Query query)
Return any temperature (reading or set point)n as a double
|
String |
listQueries()
List enumerared queries
|
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 query to Chiller and receive response
|
String |
readParameter(int index)
Read a chiller setup parameter
|
void |
sendDirectCommand(String command,
String... args)
Directly send command string to chiller/
For temporary use, to allow using non-implemented commands, allowed
only in debuf mode.
|
String |
setAndReadParameter(int index,
String value)
Set and read back a chiller setup parameter
|
void |
setDebug(boolean on_off)
Set debug mode true or false
|
void |
setParameter(int index,
String value)
Set a chiller setup parameter
|
String |
showErrors()
Show error words in hex Ascii
|
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 queryChiller(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
query - enumerated command identifierorg.lsst.ccs.drivers.commons.DriverExceptionpublic String readParameter(int index) throws org.lsst.ccs.drivers.commons.DriverException
index - DriverExceptiomorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setParameter(int index,
String value)
throws org.lsst.ccs.drivers.commons.DriverException
index - value - (as a String)DriverExceptiomorg.lsst.ccs.drivers.commons.DriverExceptionpublic String setAndReadParameter(int index, String value) throws org.lsst.ccs.drivers.commons.DriverException
index - value - (as a String)DriverExceptiomorg.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 int getFlow(Chiller.Query query) throws org.lsst.ccs.drivers.commons.DriverException
Query - enumeraion of desired flow readingorg.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 String decodeStatusReg() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String showErrors() 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.