public class Model9XX
extends org.lsst.ccs.drivers.ascii.Multidrop
| Modifier and Type | Class and Description |
|---|---|
static class |
Model9XX.Default |
static class |
Model9XX.Direction |
static class |
Model9XX.Enable |
static class |
Model9XX.Gas |
static class |
Model9XX.Sensor
Public constants.
|
static class |
Model9XX.Unit |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ADDRESS |
static int |
DEFAULT_BAUDRATE |
static int |
OUTPUT_MAX |
static int |
OUTPUT_MIN |
static int |
RELAY_MAX |
static int |
RELAY_MIN |
| Constructor and Description |
|---|
Model9XX()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
calibrateAtmospheric(double press)
Calibrates MicroPirani at atmospheric pressure.
|
void |
calibrateFullScale(double press)
Calibrates cold cathode at full scale.
|
void |
calibrateVacuumCC()
Calibrates cold cathode at vacuum pressure.
|
void |
calibrateVacuumMP()
Calibrates MicroPirani at vacuum pressure.
|
void |
changeAddress(int addr)
Changes the device address.
|
void |
clearRetryCount()
Clears the command retry count.
|
String |
formatReadBuffer()
Formats the contents of the read buffer.
|
String |
getAnalogOut(int chan)
Gets an analog output string.
|
double |
getAtmospheric()
Gets the atmospheric pressure calibration factor.
|
double |
getAutoZeroLimit()
Gets the MicroPirani auto zero limit.
|
int |
getBaudRate()
Gets the baud rate.
|
Model9XX.Gas |
getCalibrationGas()
Gets the calibration gas.
|
int |
getCCProtDelay()
Gets cold cathode protection delay.
|
String |
getDeviceType()
Gets the transducer device type.
|
String |
getFirmwareVersion()
Gets the firmware version.
|
double |
getFullScale()
Gets the cold cathode full-scale pressure calibration factor.
|
String |
getHardwareVersion()
Gets the hardware version.
|
double |
getHighIntPressure()
Gets high integration pressure.
|
double |
getLowIntPressure()
Gets low integration pressure.
|
String |
getManufacturer()
Gets the manufacturer.
|
String |
getModel()
Gets the model.
|
double |
getOffPressureCC()
Gets cold cathode turn-off pressure.
|
double |
getOnPressureCC()
Gets cold cathode turn-on pressure.
|
String |
getPartNumber()
Gets the part number.
|
Model9XX.Unit |
getPressureUnit()
Gets the pressure unit.
|
String |
getReadBuffer()
Gets the contents of the read buffer.
|
Model9XX.Direction |
getRelayDirection(int relay)
Gets a relay trip direction.
|
Model9XX.Enable |
getRelayEnable(int relay)
Gets the enabled state of a relay.
|
double |
getRelayHyst(int relay)
Gets a relay hysteresis value.
|
double |
getRelayTrip(int relay)
Gets a relay set point.
|
int |
getRetryCount()
Gets the command retry count
|
int |
getRetryLimit()
Gets the command retry limit
|
double |
getSensorDose()
Gets the sensor pressure dose.
|
double |
getSensorDoseLimit()
Gets cold cathode pressure dose limit.
|
int |
getSensorTimeOn()
Gets the sensor time on.
|
String |
getSerialNumber()
Gets the serial number.
|
char |
getStatus()
Deprecated.
|
int |
getTimeOn()
Gets the transducer time on.
|
String |
getTransStatus()
Gets the transducer status.
|
String |
getUserTag()
Gets the user tag.
|
boolean |
isCCAutoPowerOn()
Gets cold cathode auto power state.
|
boolean |
isCCPowerOn()
Gets cold cathode power state.
|
boolean |
isIdentifying()
Gets the identify state.
|
boolean |
isRelayActive(int relay)
Gets whether a relay is active.
|
boolean |
isRelayDelayed()
Gets the relay trip delayed state.
|
boolean |
isResponseDelayed()
Gets the RS-485 delayed response state.
|
boolean |
isSwitchEnabled()
Gets the switch enabled state.
|
void |
open(org.lsst.ccs.drivers.ascii.Multidrop.ConnType connType,
String ident,
int baudRate,
int dataChar,
int addr)
Opens a multi-drop (RS-485) connection.
|
double |
readPressure()
Reads the combined pressure.
|
double |
readPressure(Model9XX.Sensor sensor)
Reads a pressure sensor.
|
double |
readTemperature()
Reads the MicroPirani temperature.
|
void |
setAnalogOut(int chan,
Model9XX.Sensor sensor,
int curve)
Sets analog output parameters.
|
void |
setAutoZeroLimit(double press)
Sets the MicroPirani auto zero limit.
|
void |
setBaudRate(int baud)
Sets the baud rate.
|
void |
setCalibrationGas(Model9XX.Gas gas)
Sets the calibration gas.
|
void |
setCCAutoPower(boolean on)
Sets cold cathode auto power on/off.
|
void |
setCCPower(boolean on)
Sets cold cathode power on/off.
|
void |
setCCProtDelay(int delay)
Sets cold cathode protection delay.
|
void |
setCCProtection(boolean on)
Sets cold cathode protection on/off.
|
void |
setDefaults()
Sets factory defaults.
|
void |
setDefaults(Model9XX.Default item)
Sets factory defaults.
|
void |
setDelayedResponse(boolean on)
Sets the delayed response state.
|
void |
setHighIntPressure(double press)
Sets high integration pressure.
|
void |
setIdentify(boolean on)
Sets the identify state.
|
void |
setLock(boolean on)
Sets the state of the protected function lock.
|
void |
setLowIntPressure(double press)
Sets low integration pressure.
|
void |
setOffPressureCC(double press)
Sets cold cathode turn-off pressure.
|
void |
setOnPressureCC(double press)
Sets cold cathode turn-on pressure.
|
void |
setPressureUnit(Model9XX.Unit unit)
Sets the pressure unit.
|
void |
setRelayDelayed(boolean on)
Sets the relay trip delayed state.
|
void |
setRelayDirection(int relay,
Model9XX.Direction dirn)
Sets a relay trip direction.
|
void |
setRelayEnable(int relay,
Model9XX.Enable enable)
Sets the enabled state of a relay.
|
void |
setRelayHyst(int relay,
double value)
Sets a relay hysteresis value.
|
void |
setRelayTrip(int relay,
double value)
Sets a relay set point.
|
void |
setRetryLimit(int limit)
Sets the command retry limit
|
void |
setSensorDoseLimit(double dose)
Sets cold cathode pressure dose limit.
|
void |
setSwitchEnable(boolean on)
Sets the switch enabled state.
|
void |
setUserTag(String tag)
Sets the user tag.
|
close, closeSilent, flush, getSyncObject, getTimeout, isDropEcho, isOpen, open, open, openFtdi, openFtdi, openFtdi, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setDefaultAddress, setDefaultBaud, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int DEFAULT_BAUDRATE
public static final int DEFAULT_ADDRESS
public static final int RELAY_MIN
public static final int RELAY_MAX
public static final int OUTPUT_MIN
public static final int OUTPUT_MAX
public void open(org.lsst.ccs.drivers.ascii.Multidrop.ConnType connType,
String ident,
int baudRate,
int dataChar,
int addr)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.MultidropconnType - The connection type (FTDI or SERIAL)ident - The identification (USB S/N or port)baudRate - The baud ratedataChar - The data characteristics (not used)addr - The device addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getDeviceType() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getFirmwareVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getHardwareVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getManufacturer() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getModel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getPartNumber() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getSerialNumber() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getTimeOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getSensorTimeOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getSensorDose()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getTransStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public char getStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPressureUnit(Model9XX.Unit unit) throws org.lsst.ccs.drivers.commons.DriverException
unit - The pressure unit: TORR, MBAR or PASCALorg.lsst.ccs.drivers.commons.DriverExceptionpublic Model9XX.Unit getPressureUnit() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readPressure(Model9XX.Sensor sensor) throws org.lsst.ccs.drivers.commons.DriverException
sensor - The pressure sensor enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readPressure()
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 void setLock(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether lock is to be set onorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setBaudRate(int baud)
throws org.lsst.ccs.drivers.commons.DriverException
baud - The baud rate: 4800, 9600, 19200, 38400, 57600, 115200 or 230400org.lsst.ccs.drivers.commons.DriverExceptionpublic int getBaudRate()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void changeAddress(int addr)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The new addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setUserTag(String tag) throws org.lsst.ccs.drivers.commons.DriverException
tag - The tag string (15 characters maximum)org.lsst.ccs.drivers.commons.DriverExceptionpublic String getUserTag() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSwitchEnable(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether enabled or notorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isSwitchEnabled()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDelayedResponse(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether enabled or notorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isResponseDelayed()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayDelayed(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether enabled or notorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isRelayDelayed()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setIdentify(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether enabled or notorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isIdentifying()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCalibrationGas(Model9XX.Gas gas) throws org.lsst.ccs.drivers.commons.DriverException
gas - The gas enumorg.lsst.ccs.drivers.commons.DriverExceptionpublic Model9XX.Gas getCalibrationGas() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateAtmospheric(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The atmospheric pressure value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getAtmospheric()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateVacuumMP()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setAutoZeroLimit(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The limit pressure value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getAutoZeroLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateFullScale(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The full-scale pressure value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getFullScale()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateVacuumCC()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOnPressureCC(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The turn-on pressure to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getOnPressureCC()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOffPressureCC(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The turn-off pressure to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getOffPressureCC()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setLowIntPressure(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The pressure to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getLowIntPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setHighIntPressure(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The pressure to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getHighIntPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCCAutoPower(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether on or offorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isCCAutoPowerOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCCPower(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether on or offorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isCCPowerOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCCProtDelay(int delay)
throws org.lsst.ccs.drivers.commons.DriverException
delay - The delay before turning off (sec)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCCProtection(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to enable protection (true = 120 sec)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getCCProtDelay()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSensorDoseLimit(double dose)
throws org.lsst.ccs.drivers.commons.DriverException
dose - The pressure dose to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getSensorDoseLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayTrip(int relay,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)value - The set point valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getRelayTrip(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayHyst(int relay,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)value - The hysteresis valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getRelayHyst(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayDirection(int relay,
Model9XX.Direction dirn)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)dirn - The trip direction, ABOVE or BELOWorg.lsst.ccs.drivers.commons.DriverExceptionpublic Model9XX.Direction getRelayDirection(int relay) throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayEnable(int relay,
Model9XX.Enable enable)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)enable - The enable type (CC, PIR, CMB, ON, OFF)org.lsst.ccs.drivers.commons.DriverExceptionpublic Model9XX.Enable getRelayEnable(int relay) throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isRelayActive(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setAnalogOut(int chan,
Model9XX.Sensor sensor,
int curve)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The analog channel (1 or 2)sensor - The pressure sensor to usecurve - The output curve number (0 - 32)org.lsst.ccs.drivers.commons.DriverExceptionpublic String getAnalogOut(int chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The analog channel (1 or 2)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDefaults()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDefaults(Model9XX.Default item) throws org.lsst.ccs.drivers.commons.DriverException
item - The item for which to set default value(s)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRetryLimit(int limit)
limit - public int getRetryLimit()
public void clearRetryCount()
public int getRetryCount()
public String getReadBuffer()
public String formatReadBuffer()
Copyright © 2021 LSST. All rights reserved.