public class TestChiller extends Object
| Constructor and Description |
|---|
TestChiller() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connection to a device.
|
String |
listQueries()
List queries
|
String |
listSetParams()
List parameter-setting commands
|
String |
listStatusBits()
List status bits
|
void |
open(String host,
int port)
Opens connection to chiller
|
String |
queryChiller(Chiller.Query quantity)
Send query to Chiller and show response
|
String |
readParameter(int index)
Read a specified Chiller setup parameter
|
void |
sendDebugCommand(String command,
String... args)
Send non-Query command string to chiller.
|
String |
setAndReadAnyParameter(int index,
String value)
Set and read back a specified Chiller setup parameter
|
void |
setAnyParameter(int index,
String value)
Set a specified Chiller setup parameter
|
void |
setDebug(boolean debug)
Set debug mode
|
void |
setParams(Chiller.SetParam setParam,
double... values)
Command to execute a parameter-setting command, enumerared in
Chiller.SetParam, checking that value gets set as requested.
|
String |
showErrorWords()
Show error and warning words in hex Ascii
|
String |
showEvtReg()
Show event register bits
|
String |
showFlow(Chiller.Query quantity)
Show a flow-rate value (extracted from query response)
|
String |
showHeatCool()
Show heating and cooling percentages (extracted from query)
|
String |
showLifetime(Chiller.Life quantity)
Show a lifetime value (extracted from query response)
|
String |
showPressure(Chiller.Query quantity)
Show a pressure value (extracted from query response)
|
String |
showStatusReg()
Show status register bits
|
String |
showTemperature(Chiller.Query quantity)
Show a temperature value (extracted from query response)
|
@Command(name="open",
description="Open connection to chiller")
public void open(@Argument(description="Host name")
String host,
@Argument(description="Port number",defaultValue="9760")
int port)
throws org.lsst.ccs.drivers.commons.DriverException
port - The port numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="close",
description="Close connection to chiller")
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setDebug",
description="set debug mode true/false")
public void setDebug(@Argument(description="true/false")
boolean debug)
debug - @Command(name="listQueries",
description="List available queries")
public String listQueries()
@Command(name="listSetParams",
description="List implemented parameter-setting commands")
public String listSetParams()
@Command(name="listStatusBits",
description="List status register bits")
public String listStatusBits()
@Command(name="queryChiller",
description="send specified query to chiller")
public String queryChiller(@Argument(description="Read Enumerated quantity from Chiller")
Chiller.Query quantity)
throws org.lsst.ccs.drivers.commons.DriverException
quantity - (enumerated Query)org.lsst.ccs.drivers.commons.DriverException@Command(name="readParameter",
description="Read value of specified parameter")
public String readParameter(@Argument(description="index of parameter")
int index)
throws org.lsst.ccs.drivers.commons.DriverException
index - of setup parameterorg.lsst.ccs.drivers.commons.DriverException@Command(name="setAnyParameter",
description="Set value of specified parameter")
public void setAnyParameter(@Argument(description="index of parameter")
int index,
@Argument(description="value to be set")
String value)
throws org.lsst.ccs.drivers.commons.DriverException
index - of setup parametervalue - to be set (as a String)org.lsst.ccs.drivers.commons.DriverException@Command(name="setAndReadAnyParameter",
description="Set value of specified paramete and read it backr")
public String setAndReadAnyParameter(@Argument(description="index of parameter")
int index,
@Argument(description="value to set")
String value)
throws org.lsst.ccs.drivers.commons.DriverException
index - of setup parametervalue - to be set (as a String)org.lsst.ccs.drivers.commons.DriverException@Command(name="setParams",
description="Invoke Chiller command tp set parameter(s)")
public void setParams(@Argument(description="enumerated command")
Chiller.SetParam setParam,
@Argument(description="parameter value(s)")
double... values)
throws org.lsst.ccs.drivers.commons.DriverException
SetParam - (specifies command to Chiller controller)Arguments - to send to Chillerorg.lsst.ccs.drivers.commons.DriverException@Command(name="showTemperature",
description="numerical value of a temperature reading or set-point")
public String showTemperature(@Argument(description="which quantity")
Chiller.Query quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Chiller.Query - (wprks for temperature readings and set-points)org.lsst.ccs.drivers.commons.DriverException@Command(name="showFlow",
description="numerical value of a flow reading or set-point")
public String showFlow(@Argument(description="which quantity")
Chiller.Query quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Chiller.Query - org.lsst.ccs.drivers.commons.DriverException@Command(name="showPressure",
description="numerical value of a pressure reading")
public String showPressure(@Argument(description="which quantity")
Chiller.Query quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Chiller.Query - org.lsst.ccs.drivers.commons.DriverException@Command(name="showLifetime",
description="numerical value of lifetime")
public String showLifetime(@Argument(description="which quantity")
Chiller.Life quantity)
throws org.lsst.ccs.drivers.commons.DriverException
Chiller.Life - org.lsst.ccs.drivers.commons.DriverException@Command(name="showHeatCool",
description="numerical values of heat/cool percentages")
public String showHeatCool()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showEvtReg",
description="Show decoded Event Register")
public String showEvtReg()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showStatusReg",
description="Show decoded Status Register")
public String showStatusReg()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showErrorWords",
description="Show error and warning words in hex")
public String showErrorWords()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="sendDebugCommand",
description="Send non-query command to chiller, debug-mode")
public void sendDebugCommand(@Argument(description="command String")
String command,
@Argument(description="arguments to command")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - (String)args - (arguments, if any)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2022 LSST. All rights reserved.