
public class REBDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CCD_MASK |
protected int |
ccdMask |
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 |
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_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 |
|---|---|
protected void |
addConfigValues(Map<String,Object> values)
Adds to the map of configured values.
|
int |
checkAspics()
Checks loaded ASPIC configuration data.
|
List<Integer> |
checkCabacs()
Checks loaded CABAC configuration data.
|
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.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
int |
getCabacPower()
Gets the CABAC power enable bits.
|
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.
|
org.lsst.ccs.drivers.reb.ImageMetadata |
getImageMetadata()
Gets the DAQ metadata for the current image.
|
ImageProc |
getImageProc()
Gets the associated image processor.
|
REB |
getREBConfig()
Gets the REB configuration data.
|
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 |
initialize()
Performs basic 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()
Loads configuration data to the CABACs in a safe way.
|
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.
|
void |
resetFrontEnd()
Resets the front end.
|
void |
setBackBias(boolean value)
Turns back bias on or off.
|
void |
setCabacPower(int enables)
Sets the CABAC power enable bits.
|
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) |
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.
|
addChannel, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, init, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangeprotected static final String ID
protected static final String IFC_NAME
protected static final String CCD_MASK
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
@ConfigurationParameter(name="id",
category="Rafts")
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.@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 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 configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - The monitor objectprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.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.subsystem.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.subsystem.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel typepublic double readChannelNow(int hwChan,
int type)
readChannelNow in class org.lsst.ccs.subsystem.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()
protected void addConfigValues(Map<String,Object> values)
addConfigValues in class org.lsst.ccs.subsystem.monitor.Devicevalues - Map to be added to@Command(type=ACTION, description="Loads configured DAC values") public int loadDacs(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(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@Command(type=ACTION, description=" Loads configuration data to the CABACs") public int loadCabacs() throws Exception
Exception@Command(type=QUERY, description="Checks loaded CABAC configuration data") public List<Integer> checkCabacs() throws Exception
Exception@Command(type=ACTION, description="Sets 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@Command(type=QUERY, description="Gets 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=" 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(name="value",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(name="heater",description="Heater number") int heater, @Argument(name="value",description="The voltage") double volts) throws Exception
Exception@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(String filter, double temperature, 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(name="offset",description="Offset to the pixel data") int offset, @Argument(name="count",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=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(name="address",description="Address of the first register") int address, @Argument(name="count",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(name="address",description="Address of the first register") int address, @Argument(name="values",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.Copyright © 2016 LSST. All rights reserved.