public class GP390 extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GP390.ConnType
Constants & data.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DISP_ABS |
static int |
DISP_BOTH |
static int |
DISP_DIFF |
static int |
FMODE_ALT |
static int |
FMODE_AUTO |
static int |
FMODE_MAN |
static int |
GMODE_DEGAS |
static int |
GMODE_HIGH |
static int |
GMODE_LOW |
static int |
GMODE_OFF |
static int |
RELAY_ABS |
static int |
RELAY_ACT |
static int |
RELAY_DEACT |
static int |
RELAY_DIFF |
static int |
RELAY_MAX |
static int |
RELAY_MIN |
static int |
UNIT_MBAR |
static int |
UNIT_PA |
static int |
UNIT_TORR |
| Constructor and Description |
|---|
GP390() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignRelay(int relay,
int assign)
Assigns a trip relay to a vacuum type.
|
void |
calibrateAtmospheric()
Calibrates at atmospheric pressure.
|
void |
calibrateVacuum()
Calibrates at vacuum pressure.
|
void |
close()
Closes the connection.
|
void |
enableRelay(int relay,
boolean enable)
Enables/disables a trip relay.
|
double |
getAtmospheric()
Gets the atmospheric pressure.
|
int |
getFilamentStatus()
Gets the filament status.
|
String |
getFwVersion()
Gets the firmware version.
|
int |
getMiDegasTime()
Gets the micro-ion gauge degas time.
|
int |
getMiDelayTime()
Gets the micro-ion gauge delay time.
|
double |
getMiGaugeCurrent()
Gets the micro-ion gauge current.
|
int |
getMiGaugeMode()
Gets the micro-ion gauge mode.
|
double |
getMiSwitchPressure()
Gets the micro-ion current switch pressure.
|
int |
getPressureUnit()
Gets the pressure unit.
|
int |
getRelayAssignment(int relay)
Gets the assignment for a trip relay.
|
double |
getRelayTrip(int relay,
int type)
Gets a trip relay set point.
|
String[] |
getStatusStrings()
Gets the array of status strings.
|
int |
getStatusWord()
Gets the status word.
|
boolean |
isMiDegasOn()
Tests whether a micro-ion gauge degas is on or off.
|
boolean |
isMiDelayOn()
Tests whether the micro-ion gauge delay is on or off.
|
boolean |
isMiGaugeOn()
Tests whether the micro-ion gauge is on or off.
|
boolean |
isPressureIndOn()
Tests whether the pressure indication is on or off.
|
boolean |
isRelayActive(int relay)
Gets whether a trip relay is active.
|
boolean |
isRelayEnabled(int relay)
Gets whether a trip relay is enabled.
|
void |
open(GP390.ConnType connType,
String ident,
int param,
int address)
Opens a connection.
|
double |
readDiffPressure()
Reads the differential pressure.
|
double |
readPressure()
Reads the vacuum pressure.
|
void |
reset()
Resets to power-up state.
|
void |
setAddressOffset(int offset)
Sets the address offset.
|
void |
setAtmospheric(double press)
Sets the atmospheric pressure.
|
void |
setBaudRate(int baud)
Sets the baud rate.
|
void |
setCommDefaults()
Sets communications defaults.
|
void |
setDefaults()
Sets factory defaults.
|
void |
setFilamentMode(int mode)
Sets the filament mode.
|
void |
setLock(boolean on)
Sets the state of the protected function lock.
|
void |
setMiDegasOn(boolean on)
Turns a micro-ion gauge degas cycle on or off.
|
void |
setMiDegasTime(int time)
Sets the micro-ion gauge degas time.
|
void |
setMiDelayOn(boolean on)
Turns the micro-ion gauge delay on or off.
|
void |
setMiDelayTime(int time)
Sets the micro-ion gauge delay time.
|
void |
setMiGaugeOn(boolean on)
Turns the micro-ion gauge on or off.
|
void |
setMiSwitchPressure(double press)
Sets the micro-ion current switch pressure.
|
void |
setPressureDisp(int disp)
Sets the pressure display type.
|
void |
setPressureIndOn(boolean on)
Turns on or off the pressure indication when the micro-ion gauge is off.
|
void |
setPressureUnit(int unit)
Sets the pressure unit.
|
void |
setRelayTrip(int relay,
int type,
double value)
Sets a trip relay set point.
|
void |
setTimeout(double timeout)
Sets the read timeout.
|
boolean |
toggleLock()
Toggles protected function lock.
|
void |
unlock()
Unlocks protected functions (one time).
|
public static final int UNIT_TORR
public static final int UNIT_MBAR
public static final int UNIT_PA
public static final int DISP_ABS
public static final int DISP_DIFF
public static final int DISP_BOTH
public static final int FMODE_MAN
public static final int FMODE_ALT
public static final int FMODE_AUTO
public static final int GMODE_OFF
public static final int GMODE_DEGAS
public static final int GMODE_HIGH
public static final int GMODE_LOW
public static final int RELAY_MIN
public static final int RELAY_MAX
public static final int RELAY_ABS
public static final int RELAY_DIFF
public static final int RELAY_ACT
public static final int RELAY_DEACT
public void open(GP390.ConnType connType, String ident, int param, int address) throws org.lsst.ccs.drivers.commons.DriverException
connType - The connection type (FTDI or SERIAL)ident - The identification (USB S/N or port)param - The parameter (baud rate)address - The device addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimeout(double timeout)
throws org.lsst.ccs.drivers.commons.DriverException
timeout - The timeout (secs). 0 means no timeout.org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPressureUnit(int unit)
throws org.lsst.ccs.drivers.commons.DriverException
unit - The pressure unit: TORR, MBAR or PAorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getPressureUnit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPressureDisp(int disp)
throws org.lsst.ccs.drivers.commons.DriverException
disp - The pressure display type: ABS, DIFF or BOTHorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readDiffPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean toggleLock()
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 unlock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setAddressOffset(int offset)
throws org.lsst.ccs.drivers.commons.DriverException
offset - The first hex digit of the address: 0 - 3org.lsst.ccs.drivers.commons.DriverExceptionpublic void setBaudRate(int baud)
throws org.lsst.ccs.drivers.commons.DriverException
baud - The baud rate: 1200, 2400, 4800, 9600, 19200 or 38400org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFilamentMode(int mode)
throws org.lsst.ccs.drivers.commons.DriverException
mode - The filament mode: MAN, ALT or AUTOorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getFilamentStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiGaugeOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to turn the gauge onorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isMiGaugeOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPressureIndOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to turn the pressure indication onorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isPressureIndOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiDelayOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to turn the gauge delay onorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isMiDelayOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiDelayTime(int time)
throws org.lsst.ccs.drivers.commons.DriverException
time - The degas time (0 - 600 secs)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMiDelayTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiDegasOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to turn the gauge degas onorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isMiDegasOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiDegasTime(int time)
throws org.lsst.ccs.drivers.commons.DriverException
time - The degas time (10 - 120 secs)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMiDegasTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMiSwitchPressure(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The switch pressureorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getMiSwitchPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getMiGaugeCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMiGaugeMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateAtmospheric()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void calibrateVacuum()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setAtmospheric(double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The atmospheric pressure value to set, or negative for actualorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getAtmospheric()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setRelayTrip(int relay,
int type,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)type - The set point type (1 = activation, 0 = deactivation)value - The set point valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getRelayTrip(int relay,
int type)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)type - The set point type (1 = activation, 0 = deactivation)org.lsst.ccs.drivers.commons.DriverExceptionpublic void assignRelay(int relay,
int assign)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)assign - The assignment: 0 = absolute, 1 = differentialorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getRelayAssignment(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void enableRelay(int relay,
boolean enable)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)enable - Whether to enableorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isRelayEnabled(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 String[] getStatusStrings() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getStatusWord()
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 void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCommDefaults()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDefaults()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.