
public class REBDevice
extends org.lsst.ccs.monitor.Device
implements org.lsst.ccs.framework.ClearAlertHandler
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CCD_MASK |
protected int |
ccdMask |
static int |
CHAN_HTR_POWER |
static int |
CHAN_HTR_VOLTS |
static int |
CHAN_RTD_INT_TEMP |
static int |
CHAN_RTD_INT_VOLT |
static int |
CHAN_TOTAL_POWER |
protected int |
configCcdMask |
protected int |
hdwTypeI |
protected int |
hwVersion |
protected int |
id |
protected static String |
ID |
protected static String |
IFC_NAME |
protected String |
ifcName |
protected int |
maxCcdMask |
static int |
NUM_HTR_CHANS |
static int |
NUM_RTD_CHANS |
static String |
RAFTS |
static String |
RAFTS_LIMITS |
static int |
TYPE_ASP_TEMP |
static int |
TYPE_BD_POWER |
static int |
TYPE_BD_TEMP |
static int |
TYPE_BIAS_VOLT |
static int |
TYPE_CCD_CURR |
static int |
TYPE_CR_VOLT |
static int |
TYPE_HEATER |
static int |
TYPE_RTD |
| Constructor and Description |
|---|
REBDevice()
No-argument constructor.
|
REBDevice(int id,
String ifcName,
int ccdMask)
Constructor.
|
REBDevice(String hdwType,
int id,
String ifcName,
int ccdMask)
Constructor.
|
REBDevice(String hdwType,
int id,
String ifcName,
int ccdMask,
org.lsst.ccs.drivers.reb.ClientFactory clientFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert)
Clears an alert.
|
int |
checkAspics()
Checks loaded ASPIC configuration data.
|
List<Integer> |
checkCabacs()
Deprecated.
|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
clearBiasDacs()
Clears bias DAC values.
|
void |
clearDacs()
Clears DAC values.
|
protected void |
close()
Closes the connection.
|
int |
getCabacPower()
Deprecated.
|
int |
getCcdMask()
Gets the mask of CCDs being used.
|
int |
getHdwType()
Gets the hardware type.
|
int |
getHwVersion()
Gets the hardware version.
|
int |
getId()
Gets the REB ID.
|
String |
getIfcName()
Gets the network interface name.
|
ImageData |
getImage(int offset,
int count)
Gets a portion of the current image.
|
ImageData |
getImage(int ccd,
int offset,
int count)
Gets a portion of the current image.
|
org.lsst.ccs.drivers.reb.ImageMetadata |
getImageMetadata()
Gets the DAQ metadata for the current image.
|
ImageProc |
getImageProc()
Gets the associated image processor.
|
int |
getRaftNumber()
Gets the raft number.
|
REB |
getREBConfig()
Gets the REB configuration data.
|
int |
getRebNumber()
Gets the REB number.
|
StatusData |
getRebStatus()
Gets the REB status block.
|
int |
getRebType()
Gets the REB type.
|
RegisterData |
getRegister(int address,
int count)
Gets the contents of REB registers.
|
SequencerProc |
getSequencer()
Gets the associated sequencer.
|
long |
getSerialNumber()
Gets the serial number.
|
long |
getTime()
Gets the time base as Unix time.
|
long |
getTime(String rSet) |
protected void |
initChannel(String name,
int id,
int hwChan,
int type,
int subtype)
Initializes a channel (in this case only checks HW channel number).
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
boolean |
isBackBiasOn()
Gets the back bias on state.
|
int |
loadAspics(boolean all)
Loads configuration data to the ASPICs.
|
int |
loadBiasDacs(boolean all)
Loads configured bias DAC values.
|
int |
loadCabacs()
Deprecated.
|
int |
loadDacs(boolean all)
Loads configured DAC values.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads grouped channels.
|
double |
readChannelNow(int hwChan,
int type)
Reads a channel immediately.
|
int |
resetAspics()
Resets the ASPICs.
|
void |
resetFrontEnd()
Resets the front end.
|
void |
setAllAspicGain(int gain)
Transversal setting of all Gains for the Aspics of this reb.
|
void |
setAllAspicRc(int rc)
Transversal setting of all Rcs for the Aspics of this reb.
|
void |
setAllAspicTM(boolean tm)
Transversal setting of all TM for the Aspics of this reb.
|
void |
setAllGain(int gain)
Deprecated.
|
void |
setAllRc(int rc)
Deprecated.
|
void |
setAllTM(boolean tm)
Deprecated.
|
void |
setBackBias(boolean value)
Turns back bias on or off.
|
void |
setCabacPower(int enables)
Deprecated.
|
void |
setCcdMask(int ccdMask)
Sets the mask of CCDs being used.
|
void |
setClientFactory(org.lsst.ccs.drivers.reb.ClientFactory factory)
Sets the client factory.
|
void |
setFitsConditions(String filter,
double temperature,
double wavelength)
Sets the FITS file test conditions.
|
void |
setFitsFileNamePatter(String fitsFileNamePattern)
Deprecated.
|
void |
setHeater(int heater,
double volts)
Sets a heater voltage.
|
void |
setHeaterPower(int heater,
double power)
Sets heater power.
|
void |
setId(int id)
Sets the REB ID.
|
void |
setIfcName(String ifcName)
Sets the network interface name.
|
void |
setREBConfig(REB reb)
Sets the REB configuration data.
|
void |
setRegister(int address,
int[] values)
Sets the contents of REB registers.
|
void |
setTime()
Sets the time base to the current system time.
|
void |
simulateDisconnection()
Simulate a disconnect
|
void |
start() |
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected static final String ID
protected static final String IFC_NAME
protected static final String CCD_MASK
public static final String RAFTS
public static final String RAFTS_LIMITS
public static final int TYPE_BD_TEMP
public static final int TYPE_BD_POWER
public static final int TYPE_RTD
public static final int TYPE_ASP_TEMP
public static final int TYPE_BIAS_VOLT
public static final int TYPE_CCD_CURR
public static final int TYPE_CR_VOLT
public static final int TYPE_HEATER
public static final int CHAN_TOTAL_POWER
public static final int CHAN_HTR_VOLTS
public static final int CHAN_HTR_POWER
public static final int NUM_HTR_CHANS
public static final int CHAN_RTD_INT_TEMP
public static final int CHAN_RTD_INT_VOLT
public static final int NUM_RTD_CHANS
@ConfigurationParameter(name="id",
isFinal=true)
protected int id
@ConfigurationParameter(name="ccdMask",
category="Rafts")
protected int ccdMask
@ConfigurationParameter(name="ifcName",
category="Rafts")
protected String ifcName
protected int hdwTypeI
protected int configCcdMask
protected int maxCcdMask
protected int hwVersion
public REBDevice()
public REBDevice(int id,
String ifcName,
int ccdMask)
id - The REB IDifcName - The name of the network interface to useccdMask - The mask of active CCDspublic REBDevice(String hdwType, int id, String ifcName, int ccdMask)
hdwType - The hardware type (DAQ0, DAQ1 or PCI)id - The REB IDifcName - The name of the network interface to useccdMask - The mask of active CCDspublic REBDevice(String hdwType, int id, String ifcName, int ccdMask, org.lsst.ccs.drivers.reb.ClientFactory clientFactory)
hdwType - The hardware type (DAQ0, DAQ1 or PCI)id - The REB IDifcName - The name of the network interface to useccdMask - The mask of active CCDsclientFactory - The client factory for this RebDevice. It is
used to inject simulation.public void start()
start in interface org.lsst.ccs.framework.HasLifecycle@ConfigurationParameterChanger public void setId(int id)
id - The REB ID@Command(type=QUERY, description="Get the REB ID") public int getId()
@ConfigurationParameterChanger public void setIfcName(String ifcName)
ifcName - The name of the network interface to use@Command(type=QUERY, description="Get the network interface name") public String getIfcName()
@ConfigurationParameterChanger public void setCcdMask(int ccdMask)
ccdMask - The mask of active CCDs@Command(type=QUERY, description="Get the mask of CCDs being used") public int getCcdMask()
public void setClientFactory(org.lsst.ccs.drivers.reb.ClientFactory factory)
factory - The client factory@Command(type=QUERY, description="Gets the REB type") public int getRebType()
@Command(type=QUERY, description="Gets the REB number") public int getRebNumber()
@Command(type=QUERY, description="Gets the raft number") public int getRaftNumber()
@Command(type=QUERY, description="Gets the hardware type") public int getHdwType()
@Command(type=QUERY, description="Get the hardware version") public int getHwVersion()
@Command(type=QUERY, description="Get the serial number") public long getSerialNumber()
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Devicepublic org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert)
canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandleralert - The alertprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringException - If parameters are invalidprotected void initChannel(String name, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.Devicename - The channel nameid - The channel IDhwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringprotected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel typepublic double readChannelNow(int hwChan,
int type)
readChannelNow in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel type@Command(type=ACTION, description="Sets the REB configuration data") public void setREBConfig(@Argument(name="reb",description="REB configuration data") REB reb)
reb - The REB configuration (object)@Command(type=QUERY, description="Gets the REB configuration data") public REB getREBConfig()
@Command(type=CONFIGURATION, description="Set TM for all ASPICs on this REB") public void setAllAspicTM(boolean tm)
tm - true for TM, false for normal@Deprecated @Command(type=CONFIGURATION, description="[Deprecated] transversal TM setting for all aspic controls for this reb") public void setAllTM(boolean tm)
@Command(type=CONFIGURATION, description="Set gain for all ASPICs on this REB") public void setAllAspicGain(int gain)
gain - the new gain value@Deprecated @Command(type=CONFIGURATION, description="[Deprecated] transversal Gain setting for all aspic controls for this reb") public void setAllGain(int gain)
@Command(type=CONFIGURATION, description="Set RC for all ASPICs on this REB") public void setAllAspicRc(int rc)
rc - the new rc value@Deprecated @Command(type=CONFIGURATION, description="[Deprecated] transversal Rc setting for all aspic controls for this reb") public void setAllRc(int rc)
@Command(type=ACTION, description="Loads configured DAC values") public int loadDacs(@Argument(description="Whether all DACs are loaded, or only changed ones") boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=ACTION, description="Clear DAC values") public void clearDacs() throws Exception
Exception@Command(type=ACTION, description="Loads configured bias DAC values") public int loadBiasDacs(@Argument(description="Whether all DACs are loaded, or only changed ones") boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=ACTION, description="Clear bias DAC values") public void clearBiasDacs() throws Exception
Exception@Deprecated @Command(type=ACTION, description="[Deprecated] Loads configuration data to the CABACs") public int loadCabacs() throws Exception
Exception@Deprecated @Command(type=QUERY, description="[Deprecated] Checks loaded CABAC configuration data") public List<Integer> checkCabacs() throws Exception
Exception@Deprecated @Command(type=ACTION, description="[Deprecated] Set the CABAC power enable bits") public void setCabacPower(@Argument(description="Enable bits") int enables) throws org.lsst.ccs.drivers.commons.DriverException
enables - The enable bitsorg.lsst.ccs.drivers.commons.DriverException@Deprecated @Command(type=QUERY, description="[Deprecated] Get the CABAC power enable bits") public int getCabacPower()
@Command(type=ACTION, description="Load configuration data to the ASPICs") public int loadAspics(boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=ACTION, description="Reset the ASPICs") public int resetAspics() throws Exception
Exception@Command(type=ACTION, description="Check loaded ASPIC configuration") public int checkAspics() throws Exception
Exception@Command(type=QUERY, description="Get the back bias on state") public boolean isBackBiasOn() throws Exception
Exception@Command(type=ACTION, description="Turn back bias on or off") public void setBackBias(@Argument(description="The on state") boolean value) throws Exception
value - The back bias on state to set (true or false)Exception@Command(type=ACTION, description="Set heater voltage") public void setHeater(@Argument(description="Heater number") int heater, @Argument(description="The voltage") double volts) throws Exception
heater - The heater number: 0 or 1volts - The voltage to setException@Command(type=ACTION, description="Set heater power") public void setHeaterPower(@Argument(description="Heater number") int heater, @Argument(description="The power value") double power) throws Exception
heater - The heater number: 0 or 1power - The power value to setException@Command(type=ACTION, description="Sets the time base to the current system time") public void setTime() throws Exception
Exception@Command(type=QUERY, description="Gets the time base as Unix time") public long getTime() throws Exception
Exception@Command(type=QUERY, description="Gets a trigger time as Unix time") public long getTime(@Argument(name="regset",description="Register set name") String rSet) throws Exception
Exception@Command(type=ACTION, description="Sets the FITS file test conditions") public void setFitsConditions(@Argument(description="Filter name") String filter, @Argument(description="The temperature") double temperature, @Argument(description="The wavelength") double wavelength)
filter - The filter nametemperature - The temperature set pointwavelength - The monochromator wavelength@Command(type=QUERY, description="Get the DAQ metadata for the current image") public org.lsst.ccs.drivers.reb.ImageMetadata getImageMetadata() throws RaftException
RaftException@Command(type=QUERY, description="Gets a portion of the current image") public ImageData getImage(@Argument(description="Offset to the pixel data") int offset, @Argument(description="Number of pixels") int count) throws RaftException
offset - The offset (in pixels) to the first pixel data to obtain.count - The number of data pixels to obtain. If zero, all
the data, starting at offset, is obtained.RaftException@Command(type=QUERY, description="Gets a portion of the current image") public ImageData getImage(@Argument(description="CCD number") int ccd, @Argument(description="Offset to the pixel data") int offset, @Argument(description="Number of pixels") int count) throws RaftException
ccd - The CCD numberoffset - The offset (in pixels) to the first pixel data to obtain.count - The number of data pixels to obtain. If zero, all
the data, starting at offset, is obtained.RaftException@Command(type=ACTION, description="Resets the front end") public void resetFrontEnd() throws Exception
Exception@Command(type=QUERY, description="Gets the contents of REB registers") public RegisterData getRegister(@Argument(description="Address of the first register") int address, @Argument(description="Number of registers to read") int count) throws Exception
address - The address of the first register to readcount - The number of registers to readException@Command(type=ACTION, description="Sets the contents of REB registers") public void setRegister(@Argument(description="Address of the first register") int address, @Argument(description="Values to write") int[] values) throws Exception
address - The address of the first register to writevalues - The array of values to write to consecutive registersException@Command(type=QUERY, description="Gets the REB status block") public StatusData getRebStatus() throws Exception
Exceptionpublic ImageProc getImageProc()
public SequencerProc getSequencer()
@Deprecated public void setFitsFileNamePatter(String fitsFileNamePattern)
fitsFileNamePattern - The fileName pattern to be used when writing out fits files.@Command public void simulateDisconnection()
Copyright © 2018 LSST. All rights reserved.