
public class RaftsCommands extends Object
| Constructor and Description |
|---|
RaftsCommands(org.lsst.ccs.config.ConfigurableSubsystem subsys,
Collection<REBDevice> rebDevices,
List<SequencerProc> sequencers,
List<ImageProc> imageProcs,
org.lsst.ccs.utilities.ccd.Geometry geometry)
Public constructor for the Raft level commands object.
|
| 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.
|
void |
clearBiasDacs()
Clears bias DAC values.
|
void |
clearDacs()
Clears DAC values.
|
void |
enableScan(boolean value)
Sets the scan mode enables.
|
String |
getCcdType()
Gets the CCD type
|
List<Integer> |
getDataSource()
Gets the data sources from all REBs.
|
List<Map<String,Integer>> |
getFunctionMap()
Deprecated.
|
List<Map<String,Integer>> |
getMainMap()
Deprecated.
|
List<Integer> |
getParameter(String name)
Deprecated.
|
List<Map<String,Integer>> |
getPointers()
Deprecated.
|
List<String> |
getREBDeviceNames()
Gets the list of REB device names.
|
List<String> |
getREBDevices()
Deprecated.
|
List<Integer> |
getREBHwVersions()
Gets the list of REB hardware versions.
|
List<Integer> |
getREBIds()
Gets the list of REB IDs.
|
List<Long> |
getREBSerialNumbers()
Gets the list of REB serial numbers.
|
List<Map<String,Integer>> |
getSequencerFunctionMap()
Gets the list of all function maps.
|
List<Map<String,Integer>> |
getSequencerMainMap()
Gets the list of all main program maps.
|
List<Integer> |
getSequencerParameter(String name)
Gets the list of all values for a parameter.
|
List<Map<String,Integer>> |
getSequencerPointers()
Gets the list of all pointer information maps.
|
List<Map<String,Integer>> |
getSequencerSubroutineMap()
Gets the list of all subroutine maps.
|
List<Map<String,Integer>> |
getSubroutineMap()
Deprecated.
|
List |
getTime()
Gets all time base values.
|
Map<String,Long> |
getTimes()
Gets all time base values.
|
List<Boolean> |
isBackBiasOn()
Gets the back bias on states.
|
List<Boolean> |
isScanEnabled()
Gets the scan mode enabled states.
|
int |
loadAspics(boolean all)
Loads ASPICs with their configured values.
|
int |
loadBiasDacs(boolean all)
Loads bias DACs with their configured values.
|
int |
loadCabacs()
Loads all CABACs with their configured values.
|
int |
loadDacs(boolean all)
Loads DACs with their configured values.
|
List<Integer> |
loadSequencer(String fileName)
Loads all sequencers from a file.
|
void |
resetFirmware()
Resets the front ends.
|
void |
resetScan()
Resets the scan modes.
|
List<String> |
saveFitsImage(String dirName)
Saves the current image data as one or more FITS files.
|
List<String> |
saveImage(String dirName)
Saves the current image data as one or more sets of raw bytes.
|
void |
setBackBias(boolean value)
Sets the back bias on states.
|
void |
setCcdType(String type)
Sets the CCD type
|
void |
setDataSource(int value)
Sets the data sources in all REBs.
|
void |
setDefaultImageDirectory(String dirName)
Sets the default image directory.
|
void |
setExposureTime(double expTime)
Sets the FITS image exposure time.
|
void |
setFitsFileNamePattern(String pattern)
Sets the FITS image file name pattern.
|
void |
setImageDataFileNamePattern(String pattern)
Sets the raw image data file name pattern.
|
void |
setParameter(String name,
int value)
Deprecated.
|
void |
setPatternProperty(String propertyName,
String propertyValue)
Set a pattern property for resolving file name and output directory.
|
void |
setSequencerParameter(String name,
int value)
Sets a sequencer parameter value in all REBs.
|
List<Integer> |
setSequencerStart(String mainName)
Sets the start address for all sequencers.
|
List<Integer> |
setStart(String mainName)
Deprecated.
|
void |
setTime()
Sets the time base to the current system time.
|
void |
startSequencer()
Starts the sequencers.
|
void |
stepSequencer()
Sends a sequencer step command.
|
void |
stopSequencer()
Sends a sequencer stop command.
|
public RaftsCommands(org.lsst.ccs.config.ConfigurableSubsystem subsys,
Collection<REBDevice> rebDevices,
List<SequencerProc> sequencers,
List<ImageProc> imageProcs,
org.lsst.ccs.utilities.ccd.Geometry geometry)
subsys - The associated subsystemrebDevices - The list of REBDevices for this raft.sequencers - The List of active sequencers for the raft.imageProcs - The List of active image procs for the raft.geometry - The geometry for this raft@Command(type=ACTION, description="Set the CCD type") public void setCcdType(@Argument(name="type",description="The CCD type") String type)
type - The CCD type@Command(type=QUERY, description="Get the CCD type") public String getCcdType()
@Command(type=QUERY, description="Get the list of REB devices") public List<String> getREBDeviceNames()
@Deprecated @Command(type=QUERY, description="Get the list of REB devices") public List<String> getREBDevices()
@Command(type=QUERY, description="Get the list of REB hardware versions") public List<Integer> getREBHwVersions()
@Command(type=QUERY, description="Get the list of REB IDs") public List<Integer> getREBIds()
@Command(type=QUERY, description="Get the list of REB serial numbers") public List<Long> getREBSerialNumbers()
@Command(type=ACTION, description="Reset the front end") public void resetFirmware() throws Exception
Exception@Command(type=QUERY, description="Get the data source") public List<Integer> getDataSource() throws Exception
Exception@Command(type=ACTION, description="Set 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="Get the scan mode enabled states") public List<Boolean> isScanEnabled() throws Exception
Exception@Command(type=ACTION, description="Set 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="Reset the scan modes") public void resetScan() throws Exception
Exception@Command(type=ACTION, description="Load DACs") public int loadDacs(@Argument(name="all",description="If true, load all DACs") boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=ACTION, description="Clear DACs") public void clearDacs() throws Exception
Exception@Command(type=ACTION, description="Load bias DACs") public int loadBiasDacs(@Argument(name="all",description="If true, load all bias DACs") boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=ACTION, description="Clear bias DACs") public void clearBiasDacs() throws Exception
Exception@Command(type=ACTION, description="Load ASPICs") public int loadAspics(@Argument(name="all",description="If true, load all ASPICs") boolean all) throws Exception
all - If true, all data are loaded; otherwise only changesException@Command(type=QUERY, description="Check all ASPICs") public List<Integer> checkAspics() throws Exception
Exception@Command(type=ACTION, description="Load all CABACs") public int loadCabacs() throws Exception
Exception@Command(type=QUERY, description="Check all CABACs") public List<Integer> checkCabacs() throws Exception
Exception@Command(type=ACTION, description="Set the REBs\' system time") public void setTime() throws Exception
Exception@Command(type=QUERY, description="Get the REBs\' system times") public Map<String,Long> getTimes() throws Exception
Exception@Command(type=QUERY, description="Get the REBs\' system times") public List getTime() throws Exception
Exception@Command(type=QUERY, description="Get the back bias on states") public List<Boolean> isBackBiasOn() throws Exception
Exception@Command(type=ACTION, description="Set the back bias on states") public void setBackBias(@Argument(name="value",description="The back bias on state") boolean value) throws Exception
value - The on state to set, true or falseException@Command(type=ACTION, description="Load all sequencers from a file") public List<Integer> loadSequencer(@Argument(name="filename",description="Sequencer file name") String fileName) throws Exception, IOException
fileName - The name of the file containing sequencer
instructionsExceptionIOException@Command(type=QUERY, description="Get the maps of mains") public List<Map<String,Integer>> getSequencerMainMap()
@Deprecated @Command(type=QUERY, description="Get the maps of mains") public List<Map<String,Integer>> getMainMap()
@Command(type=QUERY, description="Get the maps of subroutines") public List<Map<String,Integer>> getSequencerSubroutineMap()
@Deprecated @Command(type=QUERY, description="Get the maps of subroutines") public List<Map<String,Integer>> getSubroutineMap()
@Command(type=QUERY, description="Get the maps of sequencer functions") public List<Map<String,Integer>> getSequencerFunctionMap()
@Deprecated @Command(type=QUERY, description="Get the maps of functions") public List<Map<String,Integer>> getFunctionMap()
@Command(type=QUERY, description="Get the maps of sequencer pointers") public List<Map<String,Integer>> getSequencerPointers()
@Deprecated @Command(type=QUERY, description="Get the maps of pointers") public List<Map<String,Integer>> getPointers()
@Command(type=QUERY, description="Get sequencer parameter values") public List<Integer> getSequencerParameter(@Argument(name="name",description="The parameter name") String name) throws Exception
name - The parameter nameException@Deprecated @Command(type=QUERY, description="Get parameter values") public List<Integer> getParameter(@Argument(name="name",description="The parameter name") String name) throws Exception
Exception@Command(type=ACTION, description="Set a sequencer parameter value") public void setSequencerParameter(@Argument(name="name",description="The parameter name") String name, @Argument(name="value",description="The value to set") int value) throws Exception
name - The parameter namevalue - The value to setException@Deprecated @Command(type=ACTION, description="Set a sequencer parameter value") public void setParameter(@Argument(name="name",description="The parameter name") String name, @Argument(name="value",description="The value to set") int value) throws Exception
Exception@Command(type=ACTION, description="Set all sequencer start addresses") public List<Integer> setSequencerStart(@Argument(name="mainName",description="Main routine name") String mainName) throws Exception
mainName - The name of the main sequencer program to start atException@Deprecated @Command(type=ACTION, description="Set all sequencer start addresses") public List<Integer> setStart(@Argument(name="mainName",description="Main routine name") String mainName) throws Exception
Exception@Command(type=ACTION, description="Start the sequencers") public void startSequencer() throws Exception
Exception@Command(type=ACTION, description="Send a sequencer stop command") public void stopSequencer() throws Exception
Exception@Command(type=ACTION, description="Send a sequencer step command") public void stepSequencer() throws Exception
Exception@Command(type=ACTION, description="Save the current image as raw bytes") public List<String> saveImage(@Argument(name="dirname",description="The directory to use",defaultValue="") String dirName) throws RaftException, IOException
dirName - The name of the directory where the image file is to
be saved.RaftExceptionIOException@Command(type=ACTION, description="Save the current image as a FITS file") public List<String> saveFitsImage(@Argument(name="dirname",description="The directory to use",defaultValue="") String dirName) throws IOException, RaftException
dirName - The name of the directory where the FITS file is to
be saved.RaftExceptionIOException@Command(type=ACTION, description="Set the default image directory") public void setDefaultImageDirectory(@Argument(name="dirname",description="The directory name") String dirName)
dirName - The directory name@Command(type=ACTION, description="Set the FITS file name pattern") public void setFitsFileNamePattern(@Argument(name="pattern",description="The file name pattern") String pattern)
pattern - The file name pattern to set@Command(type=ACTION, description="Set the raw image data file name pattern") public void setImageDataFileNamePattern(@Argument(name="pattern",description="The file name pattern") String pattern)
pattern - The file name pattern to set@Command(type=ACTION, description="Set the FITS exposure time") public void setExposureTime(@Argument(name="exptime",description="The exposure time") double expTime)
expTime - The exposure time (secs)@Command(type=ACTION, description="Set a pattern property for resolving file names and output directory") public void setPatternProperty(String propertyName, String propertyValue)
propertyName - The name of the propertypropertyValue - The value of the propertyCopyright © 2016 LSST. All rights reserved.