
public class REBDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Constructor and Description |
|---|
REBDevice(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.
|
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.
|
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 |
initialize()
Performs basic initialization.
|
void |
loadCabacs() |
void |
loadDacs()
Loads configured DAC values.
|
int |
loadSequencer(List<int[]> seqInst)
Loads the sequencer from an object.
|
int |
loadSequencerFile(String fileName)
Loads the sequencer from a file.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads grouped channels.
|
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 |
setCcdMask(int ccdMask)
Sets the mask of CCDs being used.
|
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.
|
void |
startSequencer()
Starts the sequencer.
|
addChannel, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, dropChannel, 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, waitalias, change, getCheckedValueFromConfiguration, getComponentByName, getDictionary, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, proceduralWalk, publish, publish, publish, publish, publish, publish, shutdownNow, start, treeWalkpublic 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 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 VSTException
VSTExceptionprotected 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 void loadDacs() throws Exception
Exception@Command(type=ACTION, description=" Loads configuration data to the CABACs") public void 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 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 loadSequencerFile(@Argument(name="filename",description="Sequencer file name") String fileName) throws Exception, IOException
fileName - The name of the file containing sequencer
instructionsExceptionIOException@Command(type=ACTION, description="Loads the sequencer from an object") public int loadSequencer(@Argument(name="seqinst",description="Sequencer instructions") List<int[]> seqInst) throws Exception
seqInst - The sequencer instructions to be loadedException@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 simulationException@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="Saves the current image as raw bytes") public String saveImage(@Argument(name="dirname",description="The directory to use") String dName) throws VSTException, IOException
dName - The name of the directory where the image file is to
saved.VSTExceptionIOException@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, VSTException
dName - The name of the directory where the FITS file is to be
saved.VSTExceptionIOException@Command(type=QUERY, description="Get the DAQ metadata for the current image") public org.lsst.ccs.drivers.reb.ImageMetadata getImageMetadata() throws VSTException
VSTException@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 VSTException
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.VSTException@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
ExceptionCopyright © 2015 LSST. All rights reserved.