public class GP835
extends org.lsst.ccs.drivers.scpi.Scpi
| Modifier and Type | Class and Description |
|---|---|
static class |
GP835.onOff
Public constants *
|
CHECK_CONTAINS, CHECK_ENDS_WITH, CHECK_EQUALS, CHECK_MATCHES, CHECK_STARTS_WITH, ESR_ANY_ERROR, ESR_COMMAND_ERROR, ESR_DEVICE_ERROR, ESR_EXECUTION_ERROR, ESR_QUERY_ERROR, IDENT_FW_VERSION, IDENT_MANUFACTURER, IDENT_MODEL_NAME, IDENT_SERIAL_NUMBER, SB_ERROR_QUEUE, SB_EVENT_STATUS, SB_MASTER_STATUS, SB_MESSAGE_AVAILABLE, SB_OPERATION_STATUS, SB_QUESTIONABLE_STATUS| Constructor and Description |
|---|
GP835() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
String |
getError() |
String |
getIdent()
Gets the GP835 identity.
|
double |
getPressure()
return the pressure
|
int |
getState()
Return the status response as an int
|
String |
getStatus()
Return the full Status byte *
|
void |
init()
Initializes device.
|
void |
open(int itype,
String serialname,
int baud)
Opens a connection.
|
void |
openftdi(String serialname,
int baud)
Opens an FTDI connection.
|
String |
readGP835()
Reads a response.
|
String |
readGP835(String command)
Reads a response after writing a command.
|
void |
reset()
reset to factory defaults *
|
void |
setGaugeOff()
Sets the gauge off --- usually to avoid light
|
void |
setGaugeOn()
Sets the gauge on
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
int |
stripError(String err)
Return the error register *
|
int |
stripStatus(String status)
Strips off "STB" if present and converts hex code to int *
|
void |
writeGP835(String command)
Writes a command.
|
checkIdentification, clearStatus, enableOperationComplete, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDouble, readDoubleArray, readFloat, readFloatArray, readInteger, readIntegerArray, readString, readStringArray, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletion, writeCommandpublic GP835()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(int itype,
String serialname,
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.Asciiitype - identifies type of connection NETWORK (0), FTDI(1), *
SERIAL (2)serialname - The device name of the serial portbaud - The baud rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int baud) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void reset()
throws org.lsst.ccs.drivers.commons.DriverException
reset in class org.lsst.ccs.drivers.scpi.Scpiorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int stripStatus(String status) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getState()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int stripError(String err) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getError() throws org.lsst.ccs.drivers.commons.DriverException
getError in class org.lsst.ccs.drivers.scpi.Scpiorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getIdent() 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.DriverException - * 9.5.6 External Total Pressure To get the total
pressure from an external instrument: INST ETPR OUTP ON MEAS:PRES?public void setGaugeOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - *public void setGaugeOff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - *public void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
timeout - The receive timeout (ms).
0 means no timeout.org.lsst.ccs.drivers.commons.DriverException - *public void writeGP835(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to write, excluding
terminatororg.lsst.ccs.drivers.commons.DriverException - *public String readGP835() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *org.lsst.ccs.drivers.commons.DriverExceptionpublic String readGP835(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2015 LSST. All rights reserved.