public class TestGP390 extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TestGP390.Fmode |
protected static class |
TestGP390.OnOff |
protected static class |
TestGP390.TripType |
protected static class |
TestGP390.Units |
protected static class |
TestGP390.VacType |
| Constructor and Description |
|---|
TestGP390() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignRelay(int relay,
TestGP390.VacType type)
Assigns a trip relay to a vacuum type.
|
void |
close()
Closes the connection.
|
void |
enableRelay(int relay,
boolean enable)
Enables/disables a trip relay.
|
String |
isRelayActive(int relay)
Gets whether a trip relay is active.
|
String |
isRelayEnabled(int relay)
Shows whether a trip relay is enabled.
|
void |
open(GP390.ConnType connType,
String ident,
int baud,
int address)
Opens connection to a device.
|
String |
readDiffPressure()
Reads the differential pressure.
|
String |
readPressure()
Reads the vacuum pressure.
|
void |
reset()
Resets to power-on state.
|
void |
setAtmospheric(double press)
Sets the atmospheric pressure.
|
void |
setDefaults()
Sets values to factory defaults.
|
void |
setDegasOn(TestGP390.OnOff onoff)
Turns the micro-ion gauge degas on or off.
|
void |
setDegasTime(int time)
Sets the micro-ion gauge degas time.
|
void |
setDelayOn(TestGP390.OnOff onoff)
Turns the micro-ion gauge delay on or off.
|
void |
setDelayTime(int time)
Sets the micro-ion gauge delay time.
|
void |
setFilament(TestGP390.Fmode mode)
Sets the filament mode.
|
void |
setGaugeOn(TestGP390.OnOff onoff)
Turns the micro-ion gauge on or off.
|
void |
setLock(TestGP390.OnOff onoff)
Sets the protected settings lock.
|
void |
setOffset(int offset)
Sets the address offset.
|
void |
setRelayTrip(int relay,
TestGP390.TripType type,
double value)
Sets a trip relay set point.
|
void |
setSwitchPressure(double press)
Sets the micro-ion gauge switch pressure.
|
void |
setTimeout(double timeout)
Sets the response timeout.
|
void |
setUnits(int baud)
Sets the baud rate.
|
void |
setUnits(TestGP390.Units units)
Sets the pressure units.
|
String |
showAtmospheric()
Shows the atmospheric pressure.
|
String |
showCurrent()
Shows the micro-ion gauge current.
|
String |
showDegas()
Shows the micro-ion gauge degas state.
|
String |
showDegasTime()
Shows the micro-ion gauge degas time.
|
String |
showDelay()
Shows the micro-ion gauge delay state.
|
String |
showDelayTime()
Shows the micro-ion gauge delay time.
|
String |
showFilament()
Shows the filament status.
|
String |
showFwVersion()
Shows the firmware version.
|
String |
showGauge()
Shows the micro-ion gauge state.
|
String |
showRelayAssign(int relay)
Gets the vacuum type assignment for a trip relay.
|
String |
showRelayTrip(int relay,
TestGP390.TripType type)
Shows a trip relay set point.
|
String |
showStatusWord()
Shows the status word.
|
String |
showSwitchPressure()
Shows the micro-ion gauge switch pressure.
|
String |
showUnits()
Shows the pressure units.
|
String |
toggleLock()
Toggles the protected settings lock.
|
void |
unlock()
Unlocks protected settings.
|
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type")
GP390.ConnType connType,
@Argument(name="ident",description="Identification")
String ident,
@Argument(name="baud",description="Baud rate")
int baud,
@Argument(name="addr",description="Device address")
int address)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The type of connection: ftdi or serialident - The identification: serial no. (ftdi) or port name (serial)baud - The baud rateaddress - The address of the deviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="close",
description="Close the connection")
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="unlock",
description="Unlock protected settings")
public void unlock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="toggle",
description="Toggle protected settings lock")
public String toggleLock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="lock",
description="Set protected settings lock")
public void setLock(@Argument(name="onoff",description="ON or OFF")
TestGP390.OnOff onoff)
throws org.lsst.ccs.drivers.commons.DriverException
onoff - ON or OFForg.lsst.ccs.drivers.commons.DriverException@Command(name="reset",
description="Reset to power-on state")
public void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdefaults",
description="Set factory defaults")
public void setDefaults()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showversion",
description="Show firmware version")
public String showFwVersion()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showstatus",
description="Show status word")
public String showStatusWord()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setunits",
description="Set pressure units")
public void setUnits(@Argument(name="unit",description="Pressure units")
TestGP390.Units units)
throws org.lsst.ccs.drivers.commons.DriverException
units - org.lsst.ccs.drivers.commons.DriverException@Command(name="showunits",
description="Show pressure units")
public String showUnits()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readvacuum",
description="Read vacuum pressure")
public String readPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readdiff",
description="Read differential pressure")
public String readDiffPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setatmospheric",
description="Set atmospheric pressure")
public void setAtmospheric(@Argument(name="press",description="Atmospheric pressure")
double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The atmospheric pressureorg.lsst.ccs.drivers.commons.DriverException@Command(name="showatmospheric",
description="Show atmospheric pressure")
public String showAtmospheric()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setfilament",
description="Set filament mode")
public void setFilament(@Argument(name="mode",description="Filament mode")
TestGP390.Fmode mode)
throws org.lsst.ccs.drivers.commons.DriverException
mode - The filament modeorg.lsst.ccs.drivers.commons.DriverException@Command(name="showfilament",
description="Show filament status")
public String showFilament()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setgauge",
description="Set gauge on or off")
public void setGaugeOn(@Argument(name="onoff",description="ON or OFF")
TestGP390.OnOff onoff)
throws org.lsst.ccs.drivers.commons.DriverException
onoff - ON or OFForg.lsst.ccs.drivers.commons.DriverException@Command(name="showgauge",
description="Show gauge state")
public String showGauge()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdegas",
description="Turn gauge degas on or off")
public void setDegasOn(@Argument(name="onoff",description="ON or OFF")
TestGP390.OnOff onoff)
throws org.lsst.ccs.drivers.commons.DriverException
onoff - ON or OFForg.lsst.ccs.drivers.commons.DriverException@Command(name="showdegas",
description="Show gauge degas state")
public String showDegas()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdegastime",
description="Set gauge degas time")
public void setDegasTime(@Argument(name="time",description="Degas time")
int time)
throws org.lsst.ccs.drivers.commons.DriverException
time - Degas time (sec)org.lsst.ccs.drivers.commons.DriverException@Command(name="showdegastime",
description="Show degas time")
public String showDegasTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdelay",
description="Turn gauge delay on or off")
public void setDelayOn(@Argument(name="onoff",description="ON or OFF")
TestGP390.OnOff onoff)
throws org.lsst.ccs.drivers.commons.DriverException
onoff - ON or OFForg.lsst.ccs.drivers.commons.DriverException@Command(name="showdelay",
description="Show gauge delay state")
public String showDelay()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdelaytime",
description="Set gauge delay time")
public void setDelayTime(@Argument(name="time",description="Delay time")
int time)
throws org.lsst.ccs.drivers.commons.DriverException
time - Delay time (sec)org.lsst.ccs.drivers.commons.DriverException@Command(name="showdelaytime",
description="Show gauge delay time")
public String showDelayTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setswitch",
description="Set gauge switch pressure")
public void setSwitchPressure(@Argument(name="pressure",description="Switch pressure")
double press)
throws org.lsst.ccs.drivers.commons.DriverException
press - The switch pressureorg.lsst.ccs.drivers.commons.DriverException@Command(name="showswitch",
description="Show gauge switch pressure")
public String showSwitchPressure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrent",
description="Show gauge current")
public String showCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setrelaytrip",
description="Set relay trip point")
public void setRelayTrip(@Argument(name="relay",description="Relay number")
int relay,
@Argument(name="type",description="Set point type")
TestGP390.TripType type,
@Argument(name="value",description="Set point value")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)type - The set point type: ACT or DEACTvalue - The set point valueorg.lsst.ccs.drivers.commons.DriverException@Command(name="showrelaytrip",
description="Show relay trip point")
public String showRelayTrip(@Argument(name="relay",description="Relay number")
int relay,
@Argument(name="type",description="Set point type")
TestGP390.TripType type)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)type - The set point type: ACT or DEACTorg.lsst.ccs.drivers.commons.DriverException@Command(name="assignrelay",
description="Assign relay to vacuum type")
public void assignRelay(@Argument(name="relay",description="Relay number")
int relay,
@Argument(name="type",description="Vacuum type")
TestGP390.VacType type)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)type - The vacuum type: ABS or DIFForg.lsst.ccs.drivers.commons.DriverException@Command(name="showrelayassign",
description="Show relay assignment type")
public String showRelayAssign(@Argument(name="relay",description="Relay number")
int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverException@Command(name="enablerelay",
description="Enable a relay")
public void enableRelay(@Argument(name="relay",description="Relay number")
int relay,
@Argument(name="enable",description="Whether to enable")
boolean enable)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)enable - Whether to enableorg.lsst.ccs.drivers.commons.DriverException@Command(name="isrelayenabled",
description="Check whether relay enabled")
public String isRelayEnabled(@Argument(name="relay",description="Relay number")
int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverException@Command(name="isrelayactive",
description="Check whether relay is active")
public String isRelayActive(@Argument(name="relay",description="Relay number")
int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (1 - 3)org.lsst.ccs.drivers.commons.DriverException@Command(name="setoffset",
description="Set address offset")
public void setOffset(@Argument(name="offset",description="Address first digit")
int offset)
throws org.lsst.ccs.drivers.commons.DriverException
offset - The first hex digit of the addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="setbaud",
description="Set baud rate")
public void setUnits(@Argument(name="unit",description="Baud rate")
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
baud - The baud rateorg.lsst.ccs.drivers.commons.DriverException@Command(name="settimeout",
description="Set response timeout")
public void setTimeout(@Argument(name="timeout",description="Timeout (secs)")
double timeout)
throws org.lsst.ccs.drivers.commons.DriverException
timeout - The timeout (secs)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.