public class Bfr extends Srp
| Modifier and Type | Class and Description |
|---|---|
static class |
Bfr.CurrentType |
Srp.BoardType| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_RELAYS
Constants and data.
|
static int |
NUM_SENSORS |
static int |
RELAY_HTR_1
Constants and data.
|
static int |
RELAY_HTR_2
Constants and data.
|
static int |
RELAY_PWS_16
Constants and data.
|
static int |
RELAY_PWS_17
Constants and data.
|
static int |
RELAY_PWS_18
Constants and data.
|
static int |
RELAY_PWS_19
Constants and data.
|
static int |
RELAY_PWS_2
Constants and data.
|
static int |
RELAY_PWS_20
Constants and data.
|
static int |
RELAY_PWS_21
Constants and data.
|
static int |
RELAY_PWS_25
Constants and data.
|
static int |
RELAY_PWS_3
Constants and data.
|
static int |
RELAY_PWS_4
Constants and data.
|
static int |
SENSOR_HTRS |
static int |
SENSOR_PROT |
static int |
SENSOR_PWS_1 |
static int |
SENSOR_PWS_16 |
static int |
SENSOR_PWS_17 |
static int |
SENSOR_PWS_18 |
static int |
SENSOR_PWS_19 |
static int |
SENSOR_PWS_20_21 |
static int |
SENSOR_PWS_25 |
static int |
SENSOR_PWS_3 |
static int |
SENSOR_PWS_4 |
boardType, DEFAULT_PORT| Constructor and Description |
|---|
Bfr()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getRelayNames()
Gets the names of the relays
|
boolean[] |
isRelayOn()
Gets the state of all relays
|
boolean |
isRelayOn(int relay)
Gets the state of a relay by number
|
boolean |
isRelayOn(String relay)
Gets the state of a relay by name
|
double[] |
readCurrent(Bfr.CurrentType type)
Reads all instantaneous current values.
|
double |
readCurrent(Bfr.CurrentType type,
int sensor)
Reads an instantaneous current value.
|
double[] |
readCurrent(Bfr.CurrentType type,
int sensor,
int count)
Reads a range of instantaneous current values.
|
double[] |
readHeldCurrent(Bfr.CurrentType type)
Reads all held current values.
|
double |
readHeldCurrent(Bfr.CurrentType type,
int sensor)
Reads a held current value.
|
double[] |
readHeldCurrent(Bfr.CurrentType type,
int sensor,
int count)
Reads a range of held current values.
|
double[] |
readMaxCurrent(Bfr.CurrentType type)
Reads all maximum current values.
|
double |
readMaxCurrent(Bfr.CurrentType type,
int sensor)
Reads a maximum current value.
|
double[] |
readMaxCurrent(Bfr.CurrentType type,
int sensor,
int count)
Reads a range of maximum current values.
|
double[] |
readMinCurrent(Bfr.CurrentType type)
Reads all minimum current values.
|
double |
readMinCurrent(Bfr.CurrentType type,
int sensor)
Reads a minimum current value.
|
double[] |
readMinCurrent(Bfr.CurrentType type,
int sensor,
int count)
Reads a range of minimum current values.
|
void |
resetExtrema()
Resets all minimum and maximum values
|
void |
setRelayOff()
Turns off all relays
|
void |
setRelayOff(int... relays)
Turns off several relays by number
|
void |
setRelayOff(int relay)
Turns off a relay by number
|
void |
setRelayOff(String... relays)
Turns off several relays by name
|
void |
setRelayOff(String relay)
Turns off a relay by name
|
void |
setRelayOn()
Turns on all relays
|
void |
setRelayOn(int... relays)
Turns on several relays by number
|
void |
setRelayOn(int relay)
Turns on a relay by number
|
void |
setRelayOn(String... relays)
Turns on several relays by name
|
void |
setRelayOn(String relay)
Turns on a relay by name
|
protected void |
simInitialize()
Initializes the simulation.
|
protected void |
simWriteRegs(int addr,
int[] value,
int count)
Writes simulated registers.
|
void |
triggerHold()
Triggers a hold operation
|
clearSimRegMap, close, getBoardType, getBuildStamp, getIpAddress, getNumSeqErr, getNumTimeout, getSimRegMap, isSimulated, open, open, open, open, putSimRegMap, readReg, readRegs, setDebug, setLogName, setSrpVersion, setValidBoardTypes, simReadRegs, updateReg, writeReg, writeRegspublic static final int RELAY_HTR_1
public static final int RELAY_HTR_2
public static final int RELAY_PWS_2
public static final int RELAY_PWS_3
public static final int RELAY_PWS_4
public static final int RELAY_PWS_16
public static final int RELAY_PWS_17
public static final int RELAY_PWS_18
public static final int RELAY_PWS_19
public static final int RELAY_PWS_25
public static final int RELAY_PWS_20
public static final int RELAY_PWS_21
public static final int NUM_RELAYS
public static final int SENSOR_HTRS
public static final int SENSOR_PWS_1
public static final int SENSOR_PWS_3
public static final int SENSOR_PWS_4
public static final int SENSOR_PWS_16
public static final int SENSOR_PWS_17
public static final int SENSOR_PWS_18
public static final int SENSOR_PWS_19
public static final int SENSOR_PWS_25
public static final int SENSOR_PWS_20_21
public static final int SENSOR_PROT
public static final int NUM_SENSORS
public void setRelayOn(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (0 - 11)org.lsst.ccs.drivers.commons.DriverException - if the relay number is out of boundspublic void setRelayOn(String relay) throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay nameorg.lsst.ccs.drivers.commons.DriverException - if the relay name is invalidpublic void setRelayOn(int... relays)
throws org.lsst.ccs.drivers.commons.DriverException
relays - An arg list or array of relay numbers (0 - 11)org.lsst.ccs.drivers.commons.DriverException - if any relay number is out of boundspublic void setRelayOn(String... relays) throws org.lsst.ccs.drivers.commons.DriverException
relays - An arg list or array of relay namesorg.lsst.ccs.drivers.commons.DriverException - if any relay name is invalidpublic void setRelayOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if any relay number is out of boundspublic void setRelayOff(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (0 - 11)org.lsst.ccs.drivers.commons.DriverException - if the relay number is out of boundspublic void setRelayOff(String relay) throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay nameorg.lsst.ccs.drivers.commons.DriverException - if the relay name is invalidpublic void setRelayOff(int... relays)
throws org.lsst.ccs.drivers.commons.DriverException
relays - An arg list or array of relay numbers (0 - 11)org.lsst.ccs.drivers.commons.DriverException - if any relay number is out of boundspublic void setRelayOff(String... relays) throws org.lsst.ccs.drivers.commons.DriverException
relays - An arg list or array of relay namesorg.lsst.ccs.drivers.commons.DriverException - if any relay name is invalidpublic void setRelayOff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isRelayOn(int relay)
throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay number (0 - 11)org.lsst.ccs.drivers.commons.DriverException - if the relay number is out of boundspublic boolean isRelayOn(String relay) throws org.lsst.ccs.drivers.commons.DriverException
relay - The relay nameorg.lsst.ccs.drivers.commons.DriverException - if the relay name is invalidpublic boolean[] isRelayOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readCurrent(Bfr.CurrentType type, int sensor, int count) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The first sensor number (0 - 10)count - The number of sensors to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent(Bfr.CurrentType type, int sensor) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The sensor number (0 - 10)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readCurrent(Bfr.CurrentType type) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readMinCurrent(Bfr.CurrentType type, int sensor, int count) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The first sensor number (0 - 10)count - The number of sensors to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readMinCurrent(Bfr.CurrentType type, int sensor) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The sensor number (0 - 10)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readMinCurrent(Bfr.CurrentType type) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readMaxCurrent(Bfr.CurrentType type, int sensor, int count) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The first sensor number (0 - 10)count - The number of sensors to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readMaxCurrent(Bfr.CurrentType type, int sensor) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The sensor number (0 - 10)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readMaxCurrent(Bfr.CurrentType type) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readHeldCurrent(Bfr.CurrentType type, int sensor, int count) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The first sensor number (0 - 10)count - The number of sensors to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readHeldCurrent(Bfr.CurrentType type, int sensor) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)sensor - The sensor number (0 - 10)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readHeldCurrent(Bfr.CurrentType type) throws org.lsst.ccs.drivers.commons.DriverException
type - The type of current (RMS, AC, DC)org.lsst.ccs.drivers.commons.DriverExceptionpublic void resetExtrema()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void triggerHold()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic static String[] getRelayNames() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void simInitialize()
simInitialize in class Srpprotected void simWriteRegs(int addr,
int[] value,
int count)
simWriteRegs in class Srpaddr - The first register addressvalue - The array of values to write.count - The number of values to write.Copyright © 2021 LSST. All rights reserved.