
public class TS8Subsystem
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Modifier and Type | Field and Description |
|---|---|
protected String |
fileNamePattern |
protected String |
outputDirectory |
| Constructor and Description |
|---|
TS8Subsystem(String name,
int tickMillis,
org.lsst.ccs.utilities.ccd.Geometry geometry,
org.lsst.ccs.drivers.reb.ClientFactory clientFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryTable(String pddatfile,
String fitsfile,
String extnam,
String c1name,
String c2name,
double tstart) |
String |
checkAllCurrents()
Check all currents
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
void |
checkStarted()
Checks whether hardware is started.
|
void |
checkStopped()
Checks whether hardware is stopped.
|
protected void |
clearNonStickyHeaderKeywordValues() |
List<String> |
exposeAcquireAndSave()
Start an acquisition and save the resulting images.
|
List<String> |
exposeAcquireAndSave(long exposureTimeInMillis)
Start an acquisition and save the resulting images for the given
parameters.
|
List<String> |
exposeAcquireAndSave(long exposureTimeInMillis,
boolean openShutter)
Start an acquisition and save the resulting images for the given
parameters.
|
List<String> |
exposeAcquireAndSave(long exposureTimeInMillis,
boolean openShutter,
boolean actuateXED)
Start an acquisition and save the resulting images for the given
parameters.
|
List<String> |
exposeAcquireAndSave(long exposureTimeInMillis,
boolean openShutter,
boolean actuateXED,
String filePattern)
Start an acquisition and save the resulting images for the given
parameters.
|
double |
getFluxStats(String fitsfile) |
org.lsst.ccs.subsystem.rafts.data.RaftFullState |
getFullState()
Gets the full monitoring state.
|
void |
initModule() |
String |
powerOff()
Safely power Off REB
|
String |
powerOffREB()
Power OFF REB outputs
|
String |
powerOn()
Safely power On REB
|
String |
printGeometry(int depth) |
String |
printHeaderSpecifications() |
int |
readRegister(String rebId,
int address)
Read a register address on a Reb.
|
String |
resetREBCfg(org.lsst.ccs.subsystem.rafts.REBDevice rebDevice)
Reset REB config values
|
void |
setCCDHeader(String ccdId,
String headerName,
Object headerValue,
boolean sticky)
Set a key for the Primary header of a given CCD identified by its id.
|
void |
setCCDLocation(int serial,
int parallel,
String ccdName)
What does this method do?
|
void |
setDefaultActuateXED(boolean actuate)
Set the exposure default Actuated XED.
|
void |
setDefaultExposureTime(int millis)
Set the default exposure time in milliseconds.
|
void |
setDefaultOpenShutter(boolean open)
Set the default open shutter flag for an exposure.
|
void |
setHeader(String headerName,
Object headerValue,
boolean sticky)
Set a key for the Primary header of all CCDs.
|
void |
setImageType(String itype) |
void |
setInstitution(String inst) |
void |
setRaftLoc(String rloc) |
void |
setRaftName(String raftName)
Set the name of the raft.
|
void |
setRebName(int parallel,
String rebName)
Set the name of the reb at the given parallel position.
|
void |
setSeqInfo(String sinf) |
void |
setTestType(String ttype) |
String |
showAllREBCfg()
show REB config values for all REBs
|
void |
showPhotoDiodeAnalysis(String pddatfile) |
String |
showREBCfg(org.lsst.ccs.subsystem.rafts.REBDevice rebDevice)
show REB config values
|
void |
start() |
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic trending data broadcast.
|
void |
writeRegister(String rebId,
int address,
int value)
Write a register address on a Reb.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangeprotected final String outputDirectory
protected final String fileNamePattern
public TS8Subsystem(String name, int tickMillis, org.lsst.ccs.utilities.ccd.Geometry geometry, org.lsst.ccs.drivers.reb.ClientFactory clientFactory)
public 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.Modulepublic void start()
start in interface org.lsst.ccs.framework.Configurable@Command(description="Print Header specifications", type=QUERY) public String printHeaderSpecifications()
@Command(description="Print Geometry", type=QUERY) public String printGeometry(@Argument(defaultValue="0") int depth)
@Command(description="Set the output directory for fits files", type=QUERY) public void setCCDLocation(int serial, int parallel, String ccdName) throws IllegalArgumentException
serial - The serial position of the CCDparallel - The parallel position of the CCDccdName - The name of the CCD.IllegalArgumentException - if the serial or parallel position are
illegal.@Command(description="Set the name of the raft", type=QUERY) public void setRaftName(String raftName)
raftName - @Command(description="Set the name of the reb at a given parallel position", type=QUERY) public void setRebName(int parallel, String rebName) throws IllegalArgumentException
parallel - The parallel position of the Reb.rebName - The new name of the rebIllegalArgumentException - if the parallel position is illegal.@Command(type=ACTION, description="checks all currents") public String checkAllCurrents() throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="power off REB outputs") public String powerOffREB() throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="reset REB config") public String resetREBCfg(org.lsst.ccs.subsystem.rafts.REBDevice rebDevice) throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="show REB config for all REBS") public String showAllREBCfg() throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="show REB config") public String showREBCfg(org.lsst.ccs.subsystem.rafts.REBDevice rebDevice) throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="safe power on") public String powerOn() throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(type=ACTION, description="safe power off") public String powerOff() throws Exception, IOException
IOException - *
**************************************************************************Exception@Command(description="Read a register address", type=QUERY) public int readRegister(String rebId, int address) throws Exception
rebId - The rebId: "Reb0", "R11:Reb0"address - The address of the register to read.Exception@Command(description="Write a register address", type=ACTION) public void writeRegister(String rebId, int address, int value) throws Exception
rebId - The id of the Reb: "Reb0", "R11:Reb0"address - The address to write to.value - The value to set the address to.Exception@Command(description="Set a primary header value for all CCDs", type=QUERY) public void setHeader(String headerName, Object headerValue, @Argument(defaultValue="true") boolean sticky)
headerName - The name of the Header to setheaderValue - The corresponding valuesticky - Boolean value to specify if the provided Header keyword
value should be used across exposures. The default value is true. If
false is provided, the provided Header keyword value will be reset after
each exposure.@Command(description="Set a primary header value for a given CCD", type=QUERY) public void setCCDHeader(String ccdId, String headerName, Object headerValue, @Argument(defaultValue="true") boolean sticky)
ccdId - The CCD idheaderName - The name of the Header to setheaderValue - The corresponding valuesticky - Boolean value to specify if the provided Header keyword
value should be used across exposures. The default value is true. If
false is provided, the provided Header keyword value will be reset after
each exposure.@Command(description="Start an acquisition and save the images to fits.", type=ACTION) public List<String> exposeAcquireAndSave() throws Exception, IOException, nom.tam.fits.FitsException, InterruptedException, org.lsst.ccs.subsystem.rafts.data.RaftException
org.lsst.ccs.subsystem.rafts.data.RaftExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionException@Command(description="Start an acquisition and save the images to fits.", type=ACTION) public List<String> exposeAcquireAndSave(long exposureTimeInMillis) throws Exception, IOException, nom.tam.fits.FitsException, InterruptedException, org.lsst.ccs.subsystem.rafts.data.RaftException
exposureTimeInMillis - The exposure time in millisecondsorg.lsst.ccs.subsystem.rafts.data.RaftExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionException@Command(description="Start an acquisition and save the images to fits.", type=ACTION) public List<String> exposeAcquireAndSave(long exposureTimeInMillis, boolean openShutter) throws Exception, IOException, nom.tam.fits.FitsException, InterruptedException, org.lsst.ccs.subsystem.rafts.data.RaftException
exposureTimeInMillis - The exposure time in millisecondsopenShutter - True/false if the shutter should be openorg.lsst.ccs.subsystem.rafts.data.RaftExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionException@Command(description="Start an acquisition and save the images to fits.", type=ACTION) public List<String> exposeAcquireAndSave(long exposureTimeInMillis, boolean openShutter, boolean actuateXED) throws Exception, IOException, nom.tam.fits.FitsException, InterruptedException, org.lsst.ccs.subsystem.rafts.data.RaftException
exposureTimeInMillis - The exposure time in millisecondsopenShutter - True/false if the shutter should be openactuateXED - True/false if the Fe55 should be involvedorg.lsst.ccs.subsystem.rafts.data.RaftExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionException@Command(description="Start an acquisition and save the images to fits.", type=ACTION) public List<String> exposeAcquireAndSave(long exposureTimeInMillis, boolean openShutter, boolean actuateXED, String filePattern) throws Exception, IOException, nom.tam.fits.FitsException, InterruptedException, org.lsst.ccs.subsystem.rafts.data.RaftException
exposureTimeInMillis - The exposure time in millisecondsopenShutter - True/false if the shutter should be openactuateXED - True/false if the Fe55 should be involvedfilePattern - The filePattern for the output fits filesorg.lsst.ccs.subsystem.rafts.data.RaftExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionException@Command(description="Set the default exposure time.", type=ACTION) public void setDefaultExposureTime(int millis)
millis - Exposure time in milliseconds.@Command(description="Set the exposure default open shutter flag.", type=ACTION) public void setDefaultOpenShutter(boolean open)
open - True/False if the shutter should be opened during the
exposure.@Command(description="Set the exposure default XED actuation.", type=ACTION) public void setDefaultActuateXED(boolean actuate)
actuate - True/False for XED actuation.@Command(type=QUERY, description="Gets the full Raft module state") public org.lsst.ccs.subsystem.rafts.data.RaftFullState getFullState()
protected void clearNonStickyHeaderKeywordValues()
@Command(type=QUERY, description="Sets the test type property for the output filename") public void setTestType(String ttype)
@Command(type=QUERY, description="Sets the image type property for the output filename") public void setImageType(String itype)
@Command(type=QUERY, description="Sets the raft location property for the output filename") public void setRaftLoc(String rloc)
@Command(type=QUERY, description="Sets the sequence info property for the output filename") public void setSeqInfo(String sinf)
@Command(type=QUERY, description="Sets the institution property for the output filename") public void setInstitution(String inst)
@Command public void showPhotoDiodeAnalysis(String pddatfile) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command public void addBinaryTable(String pddatfile, String fitsfile, String extnam, String c1name, String c2name, double tstart) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command public double getFluxStats(String fitsfile) throws nom.tam.fits.FitsException, IOException
nom.tam.fits.FitsExceptionIOExceptionCopyright © 2016 LSST. All rights reserved.