public class EpduG3
extends org.lsst.ccs.drivers.ascii.Session
| Constructor and Description |
|---|
EpduG3()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection
|
String |
getFWVersion()
Gets the firmware version
|
int |
getGangCount()
Gets the number of gangs
|
int[] |
getGangPhase()
Gets the phase numbers of all gangs
|
int |
getGangPhase(int gang)
Gets the phase number of a gang
|
double[] |
getOutletConfigCurrent()
Gets all configured outlet currents
|
double |
getOutletConfigCurrent(int outlet)
Gets configured outlet current
|
int |
getOutletCount()
Gets the number of outlets
|
int[] |
getOutletGang()
Gets the gang numbers of all outlets
|
int |
getOutletGang(int outlet)
Gets the gang number of an outlet
|
boolean[] |
getOutletOnStates()
Gets the on (powered) state of all outlets
|
int |
getPhaseCount()
Gets the number of phases
|
String |
getProductName()
Gets the product name
|
String |
getSerialNumber()
Gets the serial number
|
boolean |
isOutletOn(int outlet)
Gets the on (powered) state of an outlet
|
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident)
Opens a connection.
|
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident,
String username,
String password)
Opens a connection and logs in.
|
void |
powerOutletOff(int outlet,
int delay)
Turns outlet power off.
|
void |
powerOutletOn(int outlet,
int delay)
Turns outlet power on.
|
double[] |
readGangCurrent()
Reads all gang currents
|
double |
readGangCurrent(int gang)
Reads gang current
|
double[] |
readGangPower()
Reads all gang power values
|
double |
readGangPower(int gang)
Reads gang power
|
double[] |
readGangVoltage()
Reads all gang voltages
|
double |
readGangVoltage(int gang)
Reads gang voltage
|
double[] |
readOutletCurrent()
Reads all outlet currents
|
double |
readOutletCurrent(int outlet)
Reads outlet current
|
double[] |
readOutletPower()
Reads all outlet power values
|
double |
readOutletPower(int outlet)
Reads outlet power
|
double[] |
readPhaseCurrent()
Reads all phase currents
|
double |
readPhaseCurrent(int phase)
Reads phase current
|
double[] |
readPhasePower()
Reads all phase power values
|
double |
readPhasePower(int phase)
Reads phase power
|
double[] |
readPhaseVoltage()
Reads all phase voltages
|
double |
readPhaseVoltage(int phase)
Reads phase voltage
|
double |
readTemperature()
Reads the temperature
|
double |
receiveDouble(String command)
Sends a command and receives a double
|
double[] |
receiveDoubles(String command)
Sends a command and receives multiple doubles
|
int |
receiveInt(String command)
Sends a command and receives an integer
|
int[] |
receiveInts(String command)
Sends a command and receives multiple integers
|
String |
receiveString(String command)
Sends a command and receives a string
|
String[] |
receiveStrings(String command)
Sends a command and receives multiple strings
|
public void open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident,
String username,
String password)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The enumerated connection type: TELNET or SERIALident - The host name (TELNET) or port name (SERIAL)username - The user namepassword - The passwordorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The enumerated connection type: TELNET or SERIALident - The host name (TELNET) or port name (SERIAL)org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Sessionorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getProductName() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getSerialNumber() 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 double readTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getPhaseCount()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readPhaseVoltage(int phase)
throws org.lsst.ccs.drivers.commons.DriverException
phase - The phase number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readPhaseVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readPhaseCurrent(int phase)
throws org.lsst.ccs.drivers.commons.DriverException
phase - The phase number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readPhaseCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readPhasePower(int phase)
throws org.lsst.ccs.drivers.commons.DriverException
phase - The phase number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readPhasePower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getGangCount()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getGangPhase(int gang)
throws org.lsst.ccs.drivers.commons.DriverException
gang - The gang number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic int[] getGangPhase()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readGangVoltage(int gang)
throws org.lsst.ccs.drivers.commons.DriverException
gang - The gang number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readGangVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readGangCurrent(int gang)
throws org.lsst.ccs.drivers.commons.DriverException
gang - The gang number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readGangCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readGangPower(int gang)
throws org.lsst.ccs.drivers.commons.DriverException
gang - The gang number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readGangPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getOutletCount()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getOutletGang(int outlet)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic int[] getOutletGang()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isOutletOn(int outlet)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean[] getOutletOnStates()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void powerOutletOn(int outlet,
int delay)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1delay - The delay (sec) before the outlet is powered onorg.lsst.ccs.drivers.commons.DriverExceptionpublic void powerOutletOff(int outlet,
int delay)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1delay - The delay (sec) before the outlet is powered offorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getOutletConfigCurrent(int outlet)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getOutletConfigCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readOutletCurrent(int outlet)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readOutletCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readOutletPower(int outlet)
throws org.lsst.ccs.drivers.commons.DriverException
outlet - The outlet number, starting from 1org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readOutletPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String receiveString(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic int receiveInt(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic double receiveDouble(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic String[] receiveStrings(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic int[] receiveInts(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] receiveDoubles(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.