
public class REBSimDevice extends REBDevice
CCD_MASK, ccdMask, currImage, id, ID, IFC_NAME, ifcName, imageTime, maxCcdMask, numCcds| Constructor and Description |
|---|
REBSimDevice(int id,
String ifcName,
int ccdMask)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
enableScan(boolean value)
Enables or disables scan mode.
|
int |
getCabacPower()
Gets the CABAC power enable bits.
|
int |
getDataSource()
Gets the data source.
|
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)
Gets a trigger time as Unix time.
|
protected void |
initialize()
Performs basic initialization.
|
boolean |
isScanEnabled()
Gets the scan mode enabled state.
|
int |
loadAspics()
Loads configuration data to the ASPICs.
|
int |
loadCabacs()
Loads configuration data to the CABACs in a safe way.
|
int |
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.
|
void |
resetFrontEnd()
Resets the front end.
|
void |
resetScan()
Resets scan mode.
|
void |
sendStep()
Sends a sequencer step command.
|
void |
sendStop()
Sends a sequencer stop command.
|
void |
setCabacPower(int enables)
Sets the CABAC power enable bits.
|
void |
setDataSource(int value)
Sets the data source.
|
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.
|
addConfigValues, configure, getCcdMask, getId, getIfcName, getImage, getImageMetadata, saveFitsImage, saveImage, setCcdMask, setConstFitsMetadata, setFitsConditions, setFitsParameters, setId, setIfcName, splitImageaddChannel, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, 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 REBSimDevice(int id,
String ifcName,
int ccdMask)
id - The REB IDifcName - The name of the network interface to useccdMask - The mask of active CCDsprotected void initialize()
initialize in class REBDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class REBDevicename - The channel namehwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringException - If parameters are invalidprotected void readChannelGroup()
readChannelGroup in class REBDeviceprotected double readChannel(int hwChan,
int type)
readChannel in class REBDevicehwChan - 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
setREBConfig in class REBDevicereb - The REB configuration (object)Exception@Command(type=QUERY, description="Gets the REB configuration data") public REB getREBConfig() throws RaftException
getREBConfig in class REBDeviceRaftException@Command(type=ACTION, description="Loads configured DAC values") public int loadDacs() throws Exception
@Command(type=ACTION, description=" Loads configuration data to the CABACs") public int loadCabacs() throws Exception
loadCabacs in class REBDeviceException@Command(type=QUERY, description="Checks loaded CABAC configuration data") public List<Integer> checkCabacs() throws Exception
checkCabacs in class REBDeviceException@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
setCabacPower in class REBDeviceenables - The enable bitsorg.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY, description="Gets the CABAC power enable bits") public int getCabacPower()
getCabacPower in class REBDevice@Command(type=ACTION, description=" Load configuration data to the ASPICs") public int loadAspics() throws Exception
loadAspics in class REBDeviceException@Command(type=ACTION, description=" Load configuration data to the ASPICs") public int checkAspics() throws Exception
checkAspics in class REBDeviceException@Command(type=ACTION, description="Sets the time base to the current system time") public void setTime() throws Exception
@Command(type=QUERY, description="Gets the time base as Unix time") public long getTime() throws 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
@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
loadSequencerFile in class REBDevicefileName - 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
loadSequencer in class REBDeviceseqInst - The sequencer instructions to be loadedException@Command(type=QUERY, description="Gets the data source") public int getDataSource() throws Exception
getDataSource in class REBDeviceException@Command(type=ACTION, description="Sets the data source") public void setDataSource(@Argument(name="value",description="The data source value") int value) throws Exception
setDataSource in class REBDevicevalue - The encoded data source: CCD or patternException@Command(type=QUERY, description="Gets the scan mode enabled state") public boolean isScanEnabled() throws Exception
isScanEnabled in class REBDeviceException@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
enableScan in class REBDevicevalue - The scan mode enabled state to set (true or false)Exception@Command(type=ACTION, description="Resets scan mode") public void resetScan() throws Exception
@Command(type=ACTION, description="Starts the sequencer") public void startSequencer() throws Exception
startSequencer in class REBDeviceException@Command(type=ACTION, description="Sends a sequencer stop command") public void sendStop() throws Exception
@Command(type=ACTION, description="Sends a sequencer step command") public void sendStep() throws Exception
@Command(type=ACTION, description="Resets the front end") public void resetFrontEnd() throws Exception
resetFrontEnd in class REBDeviceException@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
getRegister in class REBDeviceaddress - 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
setRegister in class REBDeviceaddress - 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
getRebStatus in class REBDeviceExceptionCopyright © 2015 LSST. All rights reserved.