public class SequencerProc extends Object
| Constructor and Description |
|---|
SequencerProc(org.lsst.ccs.drivers.reb.BaseSet bss)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableScan(boolean value)
Enables or disables scan mode.
|
int |
getDataSource()
Gets the data source.
|
int |
getErrorAddr()
Gets error address.
|
Map<String,Integer> |
getFunctionMap()
Gets the map of functions.
|
int[] |
getImageRegisters()
Gets the array of image parameter registers to be read
|
Map<String,Integer> |
getMainMap()
Gets the map of main programs.
|
List<String> |
getMains()
Gets the list of main programs.
|
int |
getParameter(String parmName)
Gets a parameter value.
|
Map<String,Integer> |
getPointers()
Gets the map of pointer information.
|
Map<String,Integer> |
getSubroutineMap()
Gets the map of subroutines.
|
boolean |
isRunning()
Checks whether the sequencer is running.
|
boolean |
isScanEnabled()
Gets the scan mode enabled state.
|
int |
loadSequencer(String fileName)
Loads the sequencer from a file.
|
void |
resetError()
Resets error state.
|
void |
resetScan()
Resets scan mode.
|
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 |
setParameter(String parmName,
int value)
Sets a parameter value.
|
int |
setStart(int address)
Sets the sequencer start address.
|
int |
setStart(String mainName)
Sets the sequencer start address.
|
void |
startSequencer()
Starts the sequencer.
|
void |
waitDone(int timeout)
Waits for the sequencer to be done (idle)
|
public SequencerProc(org.lsst.ccs.drivers.reb.BaseSet bss)
bss - public int loadSequencer(String fileName) throws Exception
fileName - The name of the file containing sequencer instructionsExceptionpublic List<String> getMains()
public Map<String,Integer> getMainMap()
public Map<String,Integer> getSubroutineMap()
public Map<String,Integer> getFunctionMap()
public Map<String,Integer> getPointers()
public int[] getImageRegisters()
public int setStart(String mainName) throws org.lsst.ccs.drivers.reb.REBException, RaftException
mainName - The name of the main to start atorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic int setStart(int address)
throws org.lsst.ccs.drivers.reb.REBException
address - The address of the main to start atorg.lsst.ccs.drivers.reb.REBExceptionpublic void setParameter(String parmName, int value) throws org.lsst.ccs.drivers.reb.REBException, RaftException
parmName - The name of the parameter to setvalue - The value to setorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic int getParameter(String parmName) throws org.lsst.ccs.drivers.reb.REBException, RaftException
parmName - The name of the parameter to setorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic void setCcdMask(int ccdMask)
throws org.lsst.ccs.drivers.reb.REBException
ccdMask - The mask of active CCDsorg.lsst.ccs.drivers.reb.REBExceptionpublic int getDataSource()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void setDataSource(int value)
throws org.lsst.ccs.drivers.reb.REBException
value - The encoded data source: CCD or patternorg.lsst.ccs.drivers.reb.REBExceptionpublic boolean isScanEnabled()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void enableScan(boolean value)
throws org.lsst.ccs.drivers.reb.REBException
value - The scan mode enabled state to set (true or false)org.lsst.ccs.drivers.reb.REBExceptionpublic void resetScan()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic int getErrorAddr()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void resetError()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void startSequencer()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void sendStop()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void sendStep()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic boolean isRunning()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void waitDone(int timeout)
throws org.lsst.ccs.drivers.reb.REBException
timeout - The maximum time to wait (ms)org.lsst.ccs.drivers.reb.REBExceptionCopyright © 2018 LSST. All rights reserved.