
public class TSSubSys
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController, org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler
| Constructor and Description |
|---|
TSSubSys(String name,
int tickMillis,
String configName)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
void |
checkStarted() |
void |
checkStopped() |
void |
disconnectVQM() |
int |
eoSetupPostCfg(int vac_outlet)
Perform setup actions needed after powering on the CCD
**************************************************************************
|
int |
eoSetupPostCfg(int vac_outlet,
String state2)
Perform setup actions needed after powering on the CCD
**************************************************************************
|
int |
eoSetupPreCfg()
Perform setup actions needed before powering on the CCD
**************************************************************************
|
int |
eoSetupPreCfg(String state1)
Perform setup actions needed before powering on the CCD
**************************************************************************
|
TSFullState |
getFullState()
Gets the full state of the test stand module.
|
double |
getPressure()
return the last pressure reading from whatever gauge is active
**************************************************************************
|
int |
getReqSlitWidth(double wl)
Returns the required slit width for a given wavelength *
**************************************************************************
|
int |
getState()
Gets the operating state word.
|
TSConfig |
getTeststandc() |
int |
goTestStand()
put system in mode for acquisition
|
void |
initModule()
Initializes the test stand subsystem.
|
boolean |
isDoTestStandReadyCheck() |
int |
isTestStandReady()
Tells if the subsystem is ready for acquisition go step
**************************************************************************
|
void |
postStart() |
void |
powerOutageAction()
Put the system in a safe mode when a power outage has been signaled
**************************************************************************
|
String |
printFullState()
Prints the full state of test stand * *
**************************************************************************
|
void |
processAlarm(int event,
int parm)
Handles alarm events.
|
void |
publishState()
Publishes the state of the test stand This is intended to be called
whenever any element of the state is * changed.
|
void |
raiseTSAlert(String alertmsg,
org.lsst.ccs.bus.states.AlertState severity) |
void |
reconnectVQM() |
void |
reinit()
reinit devices
|
void |
resetTrip() |
void |
saveConfiguration()
Saves the configuration data.
|
protected Object |
sendSyncTSCommand(String name,
Object... params) |
void |
setCfgBiasVAcq(double Vacq,
int cfgstate)
set configured bias target
|
void |
setCfgCryoTAcq(double Tacq,
int cfgstate)
set configured cryo T target
|
void |
setDoTestStandReadyCheck(boolean doTestStandReadyCheck) |
void |
setSlitWidthFile(String fl)
set the source file path for the slit width data
**************************************************************************
|
void |
setState(int state)
Sets the TS state word.
|
void |
setTickMillis(int value)
Sets the tick period.
|
int |
setTSAcq1()
Set the subsystem to the acquisition 1 state *
**************************************************************************
|
int |
setTSEXPERT()
Set the subsystem to the EXPERT state *
**************************************************************************
|
int |
setTSIdle()
Set the subsystem to the idle state *
**************************************************************************
|
int |
setTSReady()
Set the subsystem to the ready state *
**************************************************************************
|
int |
setTSStateByName(String statename)
Set the subsystem to the idle state *
**************************************************************************
|
int |
setTSTEST()
Set the subsystem to the TEST state *
**************************************************************************
|
int |
setTSWarm()
Set the subsystem to the acquisition 2 state *
**************************************************************************
|
double |
showBiasVAcq()
Returns the configured set point for the acquisition CCD bias voltage *
**************************************************************************
|
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
void |
soundAlarm() |
void |
soundBleep() |
void |
startSubSys()
startSubSys: put TS sub system into the ready state * * @param value
The enabled state value to set: 0 = off, ~0 = on.
|
void |
stopSubSys()
stopSubSys: put TS sub system into the ready state
**************************************************************************
|
void |
tick()
Performs periodic trending data broadcast.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChange@Command(type=ACTION, description="reinit devices") public void reinit()
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 postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.ConfigurablepostStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Put system in safe mode") public void powerOutageAction()
@Command(type=ACTION, description="Sets the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - @Command(type=QUERY, description="raise subsystem alert") public void raiseTSAlert(String alertmsg, org.lsst.ccs.bus.states.AlertState severity)
public void processAlarm(int event,
int parm)
processAlarm in interface org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler@Command(name="resetTrip", description="reset trips etc...") public void resetTrip()
@Command(type=ACTION, description="Start the TS sub system in the ready state") public void startSubSys() throws Exception
Exception@Command(name="isTestStandReady", description="returns 1 if the teststand subsystem is ready for acquisition") public int isTestStandReady() throws Exception
Exception@Command(description="set configured bias target") public void setCfgBiasVAcq(double Vacq, int cfgstate) throws Exception
Exception - **************************************************************************@Command(description="set configured cryo T target") public void setCfgCryoTAcq(double Tacq, int cfgstate) throws Exception
Exception - **************************************************************************@Command(name="goTestStand", description="put in mode for acquisition") public int goTestStand() throws Exception
Exception - **************************************************************************@Command(name="getPressure", description="return the last pressure reading from whatever gauge is active") public double getPressure()
@Command(name="setTSStateByName", description="set TS subsystem to state indicated by the string") public int setTSStateByName(String statename)
@Command(type=QUERY, name="setTSIdle", description="set TS subsystem to the idle state") public int setTSIdle() throws Exception
Exception@Command(type=QUERY, name="setTSReady", description="set TS subsystem to the ready state") public int setTSReady() throws Exception
Exception@Command(type=QUERY, name="setTSAcq1", description="set TS subsystem to the ACQ1 state") public int setTSAcq1() throws Exception
Exception@Command(type=QUERY, name="setTSWarm", description="set TS subsystem to the WARM state") public int setTSWarm() throws Exception
Exception@Command(type=QUERY, name="setTSTEST", description="set TS subsystem to the TEST state") public int setTSTEST() throws Exception
Exception@Command(type=QUERY, name="setTSEXPERT", description="EXPERTS ONLY!!") public int setTSEXPERT() throws Exception
Exception@Command(type=QUERY, name="eoSetupPreCfg", description="prepare for eo acquisition") public int eoSetupPreCfg()
@Command(type=QUERY, name="eoSetupPreCfg", description="prepare for eo acquisition") public int eoSetupPreCfg(@Argument(name="state1",description="IDLE,WARM,READY,TEST,ACQ1") String state1)
@Command(type=QUERY, name="eoSetupPostCfg", description="prepare for eo acquisition") public int eoSetupPostCfg(@Argument(name="vac_outlet",description="PDU outlet number for the vacuum gauge") int vac_outlet) throws Exception
Exception@Command(type=QUERY, name="eoSetupPostCfg", description="prepare for eo acquisition") public int eoSetupPostCfg(@Argument(name="vac_outlet",description="PDU outlet number for the vacuum gauge") int vac_outlet, @Argument(name="state2",description="IDLE,WARM,READY,TEST,ACQ1") String state2) throws Exception
vac_outlet - Exception@Command(name="showBiasVAcq", description="returns the acquisition bias voltage set point") public double showBiasVAcq()
@Command(name="getReqSlitWidth", description="returns the req. slit width for a given wl") public int getReqSlitWidth(double wl)
@Command(name="setSlitWidthFile", description="sets the slit width data file") public void setSlitWidthFile(String fl)
@Command(name="disconnectVQM", description="disconnect from the VQM port") public void disconnectVQM() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="reconnectVQM", description="reconnect to the VQM port") public void reconnectVQM() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="stopsubsys", type=ACTION, description="Stop and set the TS sub system into the ready state") public void stopSubSys()
@Command(name="saveconfig", type=ACTION, description="Saves the current configuration") public void saveConfiguration() throws IOException
IOException@Command(type=QUERY, description="Gets the full test stand state") public TSFullState getFullState()
@Command(name="printfullstate", type=QUERY, description="Prints the full test stand state") public String printFullState()
@Command(name="getstate", type=QUERY, description="Returns the current value of the TS state") public int getState()
public TSConfig getTeststandc()
@Command(name="setstate", type=QUERY, description="sets the current value of the TS state") public void setState(int state)
public void Sleep(double secs)
@Command(name="publishState", type=QUERY, description="publishes the TS state") public void publishState()
@Command(name="isDoTestStandReadyCheck", type=QUERY, description="check whether the test stand ready check is being done") public boolean isDoTestStandReadyCheck()
@Command(name="setDoTestStandReadyCheck", type=QUERY, description="set the test stand ready check on(true)/off(false)") public void setDoTestStandReadyCheck(boolean doTestStandReadyCheck)
Copyright © 2017 LSST. All rights reserved.