public class TPG261
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
TPG261.onOff
Public constants *
**************************************************************************
|
org.lsst.ccs.drivers.ascii.Ascii.ConnType, 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| Constructor and Description |
|---|
TPG261()
Constructor * *
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
gaugeOff(Integer gauge)
Turn a TPG261 gauge off
Transmit: SEN [,x,x]
|
void |
gaugeOn(Integer gauge)
Turn a TPG261 gauge on
Transmit: SEN [,x,x]
|
String |
getError()
Get the TPG261 error status Transmit: ERR
|
String |
getID()
Get the TPG261 ID Transmit: TID
|
double |
getPressure()
Gets the TPG261 pressure reading from gauge #1 (the only one we have).
|
String |
getReply(String command)
getReply(String command)
Send a command, and wait for a reply.
|
String |
getStatus()
Get the TPG261 status Transmit: SEN
|
void |
init() |
void |
open(String serialname,
int port)
Opens a connection.
|
void |
openftdi(String serialname,
int port)
Opens an FTDI connection.
|
String |
readTPG261()
Reads a response.
|
String |
readTPG261(String command)
Reads a response after writing a command.
|
void |
sendCommand(String command)
sendCommand(String command)
Send a command, but do not wait for a reply other than to check for the
acknowledgment of that command
Transmit: command
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
writeTPG261(String command)
Writes a command.
|
public TPG261()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void open(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
serialname - port - **************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
serialname - port - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void init()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getID() 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 String getStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOn(Integer gauge) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void gaugeOff(Integer gauge) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void sendCommand(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getReply(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeTPG261(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readTPG261() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic String readTPG261(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.