
public class REBDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CCD_MASK
Constants.
|
protected int |
ccdMask |
protected org.lsst.ccs.drivers.reb.Image |
currImage |
protected int |
hdwType |
protected String |
hdwTypeS |
protected int |
id |
protected static String |
ID
Constants.
|
protected static String |
IFC_NAME
Constants.
|
protected String |
ifcName |
protected long |
imageTime |
protected int |
maxCcdMask |
protected int |
numCcds |
| Constructor and Description |
|---|
REBDevice(int id,
String ifcName,
int ccdMask)
Constructor.
|
REBDevice(String hdwType,
int id,
String ifcName,
int ccdMask)
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.
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
void |
enableScan(boolean value)
Enables or disables scan mode.
|
int |
getCabacPower()
Gets the CABAC power enable bits.
|
int |
getCcdMask()
Gets the mask of CCDs being used.
|
int |
getDataSource()
Gets the data source.
|
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.
|
REB |
getREBConfig()
Gets the REB configuration data.
|
StatusData |
getRebStatus()
Gets the REB status block.
|
RegisterData |
getRegister(int address,
int count)
Gets the contents of REB registers.
|
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.
|
boolean |
isScanEnabled()
Gets the scan mode enabled 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.
|
int |
loadSequencer(String fileName)
Loads the sequencer from a file.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads grouped channels.
|
void |
resetFrontEnd()
Resets the front end.
|
void |
resetScan()
Resets scan mode.
|
List<String> |
saveFitsImage(String dName)
Saves the current image data as one or more FITS files.
|
String |
saveImage(String dName)
Saves the current image as raw bytes.
|
void |
sendStep()
Sends a sequencer step command.
|
void |
sendStop()
Sends a sequencer stop command.
|
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.
|
protected void |
setConstFitsMetadata(long serial)
Sets constant FITS metadata.
|
void |
setDataSource(int value)
Sets the data source.
|
void |
setFitsConditions(String filter,
double temperature,
double wavelength)
Sets the FITS file test conditions.
|
void |
setFitsParameters(String testType,
String imageType,
String[] ccdManufacturer,
String[] ccdModel,
String[] ccdSerialMfct,
String[] ccdSerialLsst)
Sets the FITS file test parameters.
|
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.
|
ByteBuffer[] |
splitImage()
Splits the current image into its segments.
|
void |
startSequencer()
Starts the sequencer.
|
addChannel, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getComponentByName, getFullPath, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangeprotected static final String ID
protected static final String IFC_NAME
protected static final String CCD_MASK
protected int hdwType
protected int id
protected int ccdMask
protected int maxCcdMask
protected int numCcds
protected String hdwTypeS
protected String ifcName
protected org.lsst.ccs.drivers.reb.Image currImage
protected long imageTime
public REBDevice(int id,
String ifcName,
int ccdMask)
id - The REB IDifcName - The name of the network interface to useccdMask - The mask of active CCDs@ConfigChanger public void setId(int id)
id - The REB ID@Command(type=QUERY, description="Gets the REB ID") public int getId()
@ConfigChanger public void setIfcName(String ifcName)
ifcName - The name of the network interface to use@Command(type=QUERY, description="Gets the network interface name") public String getIfcName()
@ConfigChanger public void setCcdMask(int ccdMask)
ccdMask - The mask of active CCDs@Command(type=QUERY, description="Gets the mask of CCDs being used") public int getCcdMask()
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 type@Command(type=ACTION, description="Sets the REB configuration data") public void setREBConfig(@Argument(name="reb",description="REB configuration data") REB reb) throws Exception
reb - The REB configuration (object)Exception@Command(type=QUERY, description="Gets the REB configuration data") public REB getREBConfig() throws RaftException
RaftExceptionprotected 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="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=" 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=" Load configuration data to the ASPICs") 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="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 parameters") public void setFitsParameters(String testType, String imageType, String[] ccdManufacturer, String[] ccdModel, String[] ccdSerialMfct, String[] ccdSerialLsst)
testType - The test typeimageType - The image typeccdManufacturer - Array of CCD manufacturer namesccdModel - Array of CCD model namesccdSerialMfct - Array of manufacturer's CCD serial numbersccdSerialLsst - Array of LSST CCD serial numbers@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=ACTION, description="Loads the sequencer from a file") public int loadSequencer(@Argument(name="filename",description="Sequencer file name") String fileName) throws Exception
fileName - The name of the file containing sequencer
instructionsExceptionIOException@Command(type=QUERY, description="Gets the data source") public int getDataSource() throws Exception
Exception@Command(type=ACTION, description="Sets the data source") public void setDataSource(@Argument(name="value",description="The data source value") int value) throws Exception
value - The encoded data source: CCD or patternException@Command(type=QUERY, description="Gets the scan mode enabled state") public boolean isScanEnabled() throws Exception
Exception@Command(type=ACTION, description="Enable or disable scan mode") public void enableScan(@Argument(name="value",description="The scan mode enabled state") boolean value) throws Exception
value - The scan mode enabled state to set (true or false)Exception@Command(type=ACTION, description="Resets scan mode") public void resetScan() throws Exception
Exception@Command(type=ACTION, description="Starts the sequencer") public void startSequencer() throws Exception
Exception@Command(type=ACTION, description="Sends a sequencer stop command") public void sendStop() throws Exception
Exception@Command(type=ACTION, description="Sends a sequencer step command") public void sendStep() throws Exception
Exception@Command(type=ACTION, description="Resets the front end") public void resetFrontEnd() throws Exception
Exception@Command(type=ACTION, description="Saves the current image as raw bytes") public String saveImage(@Argument(name="dirname",description="The directory to use") String dName) throws RaftException, IOException
dName - The name of the directory where the image file is to
saved.RaftExceptionIOException@Command(type=ACTION, description="Saves the current image as a FITS file") public List<String> saveFitsImage(@Argument(name="dirname",description="The directory to use") String dName) throws IOException, RaftException
dName - The name of the directory where the FITS file is to be
saved.RaftExceptionIOException@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=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 ByteBuffer[] splitImage() throws RaftException
RaftExceptionprotected void setConstFitsMetadata(long serial)
serial - The REB serial numberCopyright © 2016 LSST. All rights reserved.