public class ArchonTS
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.messaging.AgentPresenceListener
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
log |
| Constructor and Description |
|---|
ArchonTS(String name,
int tickMillis,
String ip) |
| Modifier and Type | Method and Description |
|---|---|
String |
acquireAndSaveImage() |
org.lsst.ccs.drivers.archon.RawImageData |
acquireImage() |
void |
addBinaryTable(String pddatfile,
String fitsfile,
String extnam,
String c1name,
String c2name,
double tstart) |
void |
applyConfig() |
void |
applyLabeled() |
void |
applyParams() |
void |
applyTiming() |
void |
connecting(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo agent) |
List<String> |
ds9Get(String cmd) |
void |
ds9Set(String cmd,
String arg) |
List<String> |
ds9Versions() |
int |
eoSetup(String acffile,
String ccdtype) |
String |
exposeAcquireAndSave() |
void |
exposeAcquireAndSaveSeveral(int n) |
String |
exposeAcquireAndSaveWithoutApply() |
String |
getAcqParam() |
long |
getBackPlaneID() |
int |
getBackPlaneRev() |
int |
getBackPlaneType() |
String |
getBackPlaneVersion() |
protected org.lsst.ccs.utilities.ccd.CCDGeometry |
getCCDGeometry() |
org.lsst.ccs.utilities.ccd.CCDType |
getCCDType() |
ArchonConfiguration |
getConfig() |
String |
getConstant(String name) |
ArchonControllerStatus |
getControllerStatus() |
org.lsst.ccs.utilities.ccd.CCDType |
getDefaultCCDType() |
long |
getFetch_timeout() |
double |
getFluxStats(String fitsfile) |
double |
getImageAverageSignal() |
double |
getKpixRate() |
String |
getLabeled(String name) |
String |
getLastTestType() |
String |
getParameter(String name) |
void |
initModule() |
boolean |
isInExposure() |
boolean |
isSendImagesToDS9() |
void |
onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg) |
void |
powerOffCCD() |
void |
powerOnCCD() |
void |
saveACF(String fileName) |
protected Object |
sendSyncTSCommand(String target,
String name,
Object... params) |
void |
setAcqParam(String acqParam) |
void |
setAndApplyConfig(ArchonConfiguration c) |
void |
setAndApplyParam(String name,
String value) |
void |
setAndApplyParams(ArchonConfiguration c) |
void |
setCCDGeometry(org.lsst.ccs.utilities.ccd.CCDGeometry ccdGeom)
Overrides the default CCDType and forces the given CCDGeometry to be used.
|
void |
setCCDnum(String ccdnum) |
void |
setCCDOverScans(int number_overscan_lines) |
void |
setConfig(ArchonConfiguration c) |
void |
setConfigFromFile(String fn) |
void |
setConstant(String name,
String value) |
void |
setDefaultCCDType(org.lsst.ccs.utilities.ccd.CCDType ccdType) |
void |
setDefaultCCDTypeName(String ccdType) |
void |
setFetch_timeout(long fetch_timeout) |
void |
setFitsDirectory(String dir) |
void |
setFitsFilename(String fileName)
Allows the name under which the fits file will be stored.
|
void |
setHeader(String name,
Object value) |
void |
setLabeled(String name,
String value) |
void |
setLSSTnum(String lsstnum) |
void |
setParameter(String name,
String value) |
void |
setROI(int colStart,
int cols,
int rowStart,
int rows) |
void |
setSendImagesToDS9(boolean sendImagesToDS9) |
void |
showPhotoDiodeAnalysis(String pddatfile) |
String |
snap(String fln,
int exptime) |
String |
snap(String fln,
int exptime,
int light) |
String |
snap(String fln,
int exptime,
int light,
int fe55) |
void |
start() |
void |
tick() |
int |
waitForExpoEnd() |
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, 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, validateBulkChangepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void start()
start in interface org.lsst.ccs.framework.Configurablepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command public void setConfigFromFile(String fn)
@Command public void setAndApplyConfig(ArchonConfiguration c)
@Command public void setAndApplyParams(ArchonConfiguration c)
@Command public void saveACF(String fileName) throws IOException
IOException@Command public ArchonConfiguration getConfig()
@Command public org.lsst.ccs.utilities.ccd.CCDType getDefaultCCDType()
@Command public void setCCDGeometry(org.lsst.ccs.utilities.ccd.CCDGeometry ccdGeom)
ccdGeom - The geometry to use, or null to restore default geometry.@Command public void setCCDOverScans(int number_overscan_lines)
@Command public void setDefaultCCDType(org.lsst.ccs.utilities.ccd.CCDType ccdType)
@Command public void setDefaultCCDTypeName(String ccdType)
@Command public org.lsst.ccs.utilities.ccd.CCDType getCCDType()
@Command public void setConfig(ArchonConfiguration c)
@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.FitsExceptionIOException@Command public void setAcqParam(String acqParam)
public String getAcqParam()
@Command(description="Get the archon controller status") public ArchonControllerStatus getControllerStatus()
@Command(description="Test if images will be sent to DS9 automatically") public boolean isSendImagesToDS9()
@Command(description="Set if images should be sent to DS9 automatically") public void setSendImagesToDS9(boolean sendImagesToDS9)
@Command(description="Set an archon configuration parameter. Requires applyParams of applyConfig after.") public void setParameter(String name, String value)
@Command(description="Set an archon configuration parameter and applies the one line change.") public void setAndApplyParam(String name, String value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get an archon configuration parameter") public String getParameter(String name)
@Command(description="Set an archon configuration constant. Requires applyTiming of applyConfig after.") public void setConstant(String name, String value)
@Command(description="Get an archon configuration constant") public String getConstant(String name)
@Command(description="Set an archon configuration labeled value. Requires applyLabed or applyConfig after.") public void setLabeled(String name, String value)
@Command(description="Updates archon configuration with new labeled values") public void applyLabeled()
@Command(description="Override a FITS header")
public void setHeader(@Argument(name="name")
String name,
@Argument(name="value",defaultValue="")
Object value)
@Command(description="Set the directory into which FITS file will be stored") public void setFitsDirectory(String dir)
@Command(type=QUERY,
description="retrieve the last acq test type")
public String getLastTestType()
@Command(description="Set the file name into which FITS file will be stored") public void setFitsFilename(String fileName)
fileName - The file name, including escape sequences.@Command(description="Set the CCD number") public void setCCDnum(String ccdnum)
@Command(description="Set the LSST number") public void setLSSTnum(String lsstnum)
@Command(description="Send archon configuration to controller and apply all. Resets timing core and powers off the ccd.") public void applyConfig()
@ConfigChanger @Command(description="Send archon configuration to controller and apply params") public void applyParams()
@Command(description="Send archon configuration to controller and reload timing scripts. Resets timing core.") public void applyTiming()
@Command(description="Turn on the CCD") public void powerOnCCD()
@Command(description="Turn off the CCD") public void powerOffCCD()
public org.lsst.ccs.drivers.archon.RawImageData acquireImage()
@Command(description="trigger image exposure and readout, and acquire the image w/o applying the whole config") public String exposeAcquireAndSaveWithoutApply() throws IOException, nom.tam.fits.FitsException, org.lsst.ccs.drivers.commons.DriverException
IOExceptionnom.tam.fits.FitsExceptionorg.lsst.ccs.drivers.commons.DriverException@Command(description="trigger image exposure and readout, and acquire the image") public String exposeAcquireAndSave() throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="snap an image (filename, exptime (ms)") public String snap(@Argument(name="filename",description="filename with or without the full path") String fln, @Argument(name="exptime",description="exposure time in an integer number of msec") int exptime) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="snap an image (filename, exptime (ms), light(1)/dark(0)") public String snap(@Argument(name="filename",description="filename with or without the full path") String fln, @Argument(name="exptime",description="exposure time in an integer number of msec") int exptime, @Argument(name="light",description="light(=1) or dark(=0) exposure") int light) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="snap an image (filename, exptime (ms), light(1)/dark(0), fe55(1),no fe55(0)") public String snap(@Argument(name="filename",description="filename with or without the full path") String fln, @Argument(name="exptime",description="exposure time in an integer number of msec") int exptime, @Argument(name="light",description="light(=1) or dark(=0) exposure") int light, @Argument(name="fe55",description="XED actuated(=1) or XED inactive(=0)") int fe55) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="perform setup for acquisitions")
public int eoSetup(@Argument(name="acffile",description="filename of acf file")
String acffile,
@Argument(name="ccdtype",description="filename of acf file")
String ccdtype)
throws IOException,
nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="trigger image exposure and readout, for a series of images")
public void exposeAcquireAndSaveSeveral(int n)
throws IOException,
nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsExceptionprotected org.lsst.ccs.utilities.ccd.CCDGeometry getCCDGeometry()
@Command(description="sets ROI colStart, cols, rowStart, rows")
public void setROI(int colStart,
int cols,
int rowStart,
int rows)
@Command(description="acquire an image and save it to the default location") public String acquireAndSaveImage() throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsException@Command(description="get the average signal of the last image") public double getImageAverageSignal()
@Command(description="get the readout rate") public double getKpixRate()
@Command public long getBackPlaneID()
@Command public int getBackPlaneRev()
@Command public int getBackPlaneType()
@Command public String getBackPlaneVersion()
@Command(description="Send a set command to DS9") public void ds9Set(String cmd, @Argument(name="url",defaultValue="") String arg) throws URISyntaxException, org.astrogrid.samp.client.SampException
URISyntaxExceptionorg.astrogrid.samp.client.SampException@Command(description="Send a get command to DS9") public List<String> ds9Get(String cmd) throws org.astrogrid.samp.client.SampException
org.astrogrid.samp.client.SampExceptionpublic List<String> ds9Versions() throws org.astrogrid.samp.client.SampException
org.astrogrid.samp.client.SampException@Command(description="get the timeout for fetching images in millisecs") public long getFetch_timeout()
@Command(description="set the timeout for fetching images in millisecs") public void setFetch_timeout(long fetch_timeout)
@Command(description="is an exposure occuring") public boolean isInExposure()
@Command(description="wait for an exposure to end") public int waitForExpoEnd()
public void connecting(org.lsst.ccs.bus.data.AgentInfo agent)
connecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo agent)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg)
onStatusMessage in interface org.lsst.ccs.messaging.StatusMessageListenerCopyright © 2016 LSST. All rights reserved.