public class TPG361
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
TPG361.GaugeStatus |
static class |
TPG361.Unit |
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| Modifier and Type | Field and Description |
|---|---|
static int |
DEV_INFO_FW_VER
Public constants
|
static int |
DEV_INFO_HW_VER
Public constants
|
static int |
DEV_INFO_MODEL
Public constants
|
static int |
DEV_INFO_SERIAL
Public constants
|
static int |
DEV_INFO_TYPE
Public constants
|
static int |
NUM_DEV_INFO
Public constants
|
| Constructor and Description |
|---|
TPG361()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearInput()
Clears the input buffer.
|
void |
gaugeOff()
Turns the first (or only) gauge off.
|
void |
gaugeOff(int gauge)
Turns a gauge off.
|
void |
gaugeOn()
Turns the first (or only) gauge on.
|
void |
gaugeOn(int gauge)
Turns a gauge on.
|
String[] |
getDeviceInfo()
Gets device information.
|
String |
getError()
Gets the error status.
|
String |
getGaugeID()
Gets the ID of the first (or only) gauge.
|
String |
getGaugeID(int gauge)
Gets the ID of a gauge.
|
TPG361.GaugeStatus |
getGaugeStatus()
Gets the status of the first (or only) gauge.
|
TPG361.GaugeStatus |
getGaugeStatus(int gauge)
Gets the status of a gauge.
|
int |
getOperatingHours()
Gets the operating hours.
|
TPG361.Unit |
getUnit()
Gets the pressure unit.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int parm1,
int parm2)
Opens a connection.
|
double[] |
readPressure()
Reads the pressure from the first (or only) gauge.
|
double[] |
readPressure(int gauge)
Reads the pressure from a gauge.
|
String |
readResponse()
Reads a response.
|
String |
readString(String command)
Sends a command and gets the response.
|
double |
readTemperature()
Reads the temperature.
|
void |
setUnit(TPG361.Unit unit)
Sets the pressure unit.
|
void |
writeCommand(String command)
Writes a command and checks for error.
|
close, closeSilent, flush, getConnTimeout, getTimeout, isDropEcho, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setConnTimeout, setConnTimeout, setDefaultBaud, setDefaultParm, setDefaultPort, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int DEV_INFO_TYPE
public static final int DEV_INFO_MODEL
public static final int DEV_INFO_SERIAL
public static final int DEV_INFO_FW_VER
public static final int DEV_INFO_HW_VER
public static final int NUM_DEV_INFO
public void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int parm1,
int parm2)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - The connection typeident - The device identifierparm1 - The first parameterparm2 - The second parameterorg.lsst.ccs.drivers.commons.DriverExceptionpublic String[] getDeviceInfo() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getGaugeID() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getGaugeID(int gauge) throws org.lsst.ccs.drivers.commons.DriverException
gauge - The gauge number (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setUnit(TPG361.Unit unit) throws org.lsst.ccs.drivers.commons.DriverException
unit - The pressure unitorg.lsst.ccs.drivers.commons.DriverExceptionpublic TPG361.Unit getUnit() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getError() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOn(int gauge)
throws org.lsst.ccs.drivers.commons.DriverException
gauge - The gauge number (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOff(int gauge)
throws org.lsst.ccs.drivers.commons.DriverException
gauge - The gauge number (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic TPG361.GaugeStatus getGaugeStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic TPG361.GaugeStatus getGaugeStatus(int gauge) throws org.lsst.ccs.drivers.commons.DriverException
gauge - The gauge number (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readPressure(int gauge)
throws org.lsst.ccs.drivers.commons.DriverException
gauge - The gauge number (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic double readTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getOperatingHours()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeCommand(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The commandorg.lsst.ccs.drivers.commons.DriverExceptionpublic String readResponse() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readString(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command stringorg.lsst.ccs.drivers.commons.DriverExceptionpublic void clearInput()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.