public class AvcCooler
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
AvcCooler.Mode
Public constants
|
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 |
|---|
AvcCooler()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getAllPower()
Gets all the commanded power values.
|
double |
getDerivative()
Gets the derivative control constant.
|
int |
getError()
Gets the error word.
|
String |
getFWVersion()
Gets the firmware version
|
double |
getIntegral()
Gets the integral control constant.
|
AvcCooler.Mode |
getMode()
Gets the cooler mode.
|
double |
getPower()
Gets the commanded power.
|
String |
getProductType()
Gets the product type
|
double |
getProportional()
Gets the proportional control constant.
|
String |
getSensor()
Gets the sensor type.
|
double |
getTemperature()
Gets the target temperature.
|
boolean |
isLocked()
Gets the user lock state.
|
void |
lock(String passwd)
Sets the user lock state.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int dataChar)
Opens a connection.
|
double |
readDouble(String command)
Sends a command and reads a double value
|
String[] |
readLines(String command,
int nLines)
Sends a command and reads the response
|
double |
readPower()
Reads the power.
|
double |
readRejectTemp()
Reads the reject temperature
|
String |
readString(String command)
Sends a command and reads a string
|
double |
readTemperature()
Reads the temperature
|
void |
setDerivative(double value)
Sets the derivative control constant.
|
void |
setIntegral(double value)
Sets the integral control constant.
|
void |
setMode(AvcCooler.Mode mode)
Sets the cooler mode.
|
void |
setPassword(String passwd)
Sets the user password.
|
void |
setPower(double power)
Sets the commanded power.
|
void |
setProportional(double value)
Sets the proportional control constant.
|
void |
setTemperature(double temp)
Sets the target temperature.
|
void |
unlock(String passwd)
Clears the user lock state.
|
close, closeSilent, flush, getTimeout, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int dataChar)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - The enumerated connection type: FTDI or SERIALident - The USB ID (FTDI) or port name (SERIAL)baudRate - The baud ratedataChar - The data characteristicsorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getProductType() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getFWVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getSensor() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void lock(String passwd) throws org.lsst.ccs.drivers.commons.DriverException
passwd - The passwordorg.lsst.ccs.drivers.commons.DriverExceptionpublic void unlock(String passwd) throws org.lsst.ccs.drivers.commons.DriverException
passwd - The passwordorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isLocked()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPassword(String passwd) throws org.lsst.ccs.drivers.commons.DriverException
passwd - The new passwordorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setMode(AvcCooler.Mode mode) throws org.lsst.ccs.drivers.commons.DriverException
mode - The mode to set: OFF, ON, POWERorg.lsst.ccs.drivers.commons.DriverExceptionpublic AvcCooler.Mode getMode() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTemperature(double temp)
throws org.lsst.ccs.drivers.commons.DriverException
temp - The target temperatureorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPower(double power)
throws org.lsst.ccs.drivers.commons.DriverException
power - The power valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getAllPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readRejectTemp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getError()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setProportional(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The proportional valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getProportional()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setIntegral(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The integral valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getIntegral()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDerivative(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The derivative valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getDerivative()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String[] readLines(String command, int nLines) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendnLines - The expected number of response linesorg.lsst.ccs.drivers.commons.DriverExceptionpublic String readString(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readDouble(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.