
public class RaftsTest
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
RaftsTest(String name,
int tickMillis,
int monMillis,
String configName)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
checkAspics()
Checks all loaded ASPIC values against the configuration.
|
List<Integer> |
checkCabacs()
Checks all loaded CABAC values against the configuration.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
void |
checkStarted()
Checks whether hardware is started.
|
void |
checkStopped()
Checks whether hardware is stopped.
|
void |
enableScan(boolean value)
Sets the scan mode enables.
|
Map<String,Object> |
getConfigValues()
Gets the list of configured values from all devices.
|
List<Integer> |
getDataSource()
Gets the data sources.
|
List<String> |
getDevices()
Gets the list of all device names.
|
RaftFullState |
getFullState()
Gets the full state of the vertical slice test module.
|
ImageData |
getImage(String fileName,
int offset,
int count)
Gets a portion of a saved raw image.
|
List<String> |
getREBDevices()
Gets the list of REB device names.
|
List |
getTime()
Gets all time base values.
|
Map<String,Long> |
getTimes()
Gets all time base values.
|
void |
initModule()
Initializes the rafts subsystem.
|
List<Boolean> |
isScanEnabled()
Gets the scan mode enabled states.
|
int |
loadAspics()
Loads all ASPICs with their configured values.
|
int |
loadCabacs()
Loads all CABACs with their configured values.
|
int |
loadDacs()
Loads all DACs with their configured values.
|
List<Integer> |
loadSequencer(List<int[]> seqInst)
Loads all sequencers from an object.
|
List<Integer> |
loadSequencerFile(String fileName)
Loads all sequencers from a file.
|
void |
resetFrontEnd()
Resets the front end.
|
void |
resetScan()
Resets the scan modes.
|
void |
saveConfig()
Saves the configuration data.
|
List<String> |
saveFitsImage(String dName)
Saves the current image data as one or more FITS files.
|
List<String> |
saveImage(String dName)
Saves the current image data as one or more sets of raw bytes.
|
void |
sendStep()
Sends a sequencer step command.
|
void |
sendStop()
Sends a sequencer stop command.
|
void |
setDataSource(int value)
Sets the data sources.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
setTime()
Sets the time base to the current system time.
|
void |
startSequencer()
Starts the sequencers.
|
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic trending data broadcast.
|
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, shutdownNow, signal, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
checkHardware in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStarted()
checkStarted in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStopped()
checkStopped in interface org.lsst.ccs.framework.HardwareControllerpublic void startTicking()
startTicking in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Sets the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - The tick period (milliseconds) to set.@Command(type=ACTION, description="Saves the current configuration") public void saveConfig() throws IOException
IOException@Command(type=QUERY, description="Gets the full Raft module state") public RaftFullState getFullState()
@Command(type=ACTION, description="Sets the REBs\' system time") public void setTime() throws Exception
Exception@Command(type=QUERY, description="Gets the REBs\' system times") public Map<String,Long> getTimes() throws Exception
Exception@Command(type=QUERY, description="Gets the REBs\' system times") public List getTime() throws Exception
Exception@Command(type=QUERY, description="Gets the list of all devices") public List<String> getDevices()
@Command(type=QUERY, description="Gets the list of REB devices") public List<String> getREBDevices()
@Command(type=QUERY, description="Gets the list of all configured values") public Map<String,Object> getConfigValues()
@Command(type=ACTION, description="Loads all DACs") public int loadDacs() throws Exception
Exception@Command(type=ACTION, description="Loads all ASPICs") public int loadAspics() throws Exception
Exception@Command(type=QUERY, description="Checks all ASPICs") public List<Integer> checkAspics() throws Exception
Exception@Command(type=ACTION, description="Loads all CABACs") public int loadCabacs() throws Exception
Exception@Command(type=QUERY, description="Checks all CABACs") public List<Integer> checkCabacs() throws Exception
Exception@Command(type=ACTION, description="Loads all sequencers from a file") public List<Integer> 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 all sequencers from an object") public List<Integer> 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 List<Integer> getDataSource() throws Exception
Exception@Command(type=ACTION, description="Sets the data sources") 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=QUERY, description="Gets the scan mode enabled states") public List<Boolean> isScanEnabled() throws Exception
Exception@Command(type=ACTION, description="Sets the scan mode enables") public void enableScan(@Argument(name="value",description="The scan mode enabled state") boolean value) throws Exception
value - The enabled state to set, true or falseException@Command(type=ACTION, description="Resets the scan modes") public void resetScan() throws Exception
Exception@Command(type=ACTION, description="Starts the sequencers") 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="Reset the front end") public void resetFrontEnd() throws Exception
Exception@Command(type=ACTION, description="Saves the current image as raw bytes") public List<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="Gets a portion of a saved raw image") public ImageData getImage(String fileName, int offset, int count) throws RaftException, IOException
fileName - The name of the file containing the imageoffset - The offset (in pixels) to the first pixel data to
obtain.count - The number of data pixels to obtain.RaftExceptionIOExceptionCopyright © 2015 LSST. All rights reserved.