public class TSSubSys extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_TASK |
| Constructor and Description |
|---|
TSSubSys(String configName)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Initialization
|
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
|
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()
Gets TS configuration.
|
int |
goTestStand()
Put system in mode for acquisition
|
boolean |
isDoTestStandReadyCheck()
Checks whether ready check is being done.
|
int |
isTestStandReady()
Tells if the subsystem is ready for acquisition go step.
|
protected void |
periodicBroadcast()
Performs periodic trending data broadcast.
|
void |
postInit()
Initializes the test stand subsystem.
|
void |
postStart()
Main startup
|
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
|
boolean |
processAlarm(int event,
int parm,
String cause,
String alarmName) |
void |
publishState()
Publishes the state of the test stand.
|
void |
raiseTSAlert(String alertmsg,
org.lsst.ccs.bus.states.AlertState severity)
Raise an alert
|
void |
reconnectVQM()
Reconnects to the VQM device
|
void |
resetTrip()
Reset trips.
|
void |
saveConfiguration()
Saves the configuration data.
|
protected Object |
sendSyncTSCommand(String name,
Object... params)
Sends a synchronous command.
|
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)
Puts into ready check state.
|
void |
setSlitWidthFile(String fl)
set the source file path for the slit width data
|
void |
setState(int state)
Sets the TS state word.
|
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 named 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 |
soundAlarm()
Sound an alarm.
|
void |
soundBleep()
Sound a bleep.
|
void |
startSubSys()
startSubSys: put TS sub system into the ready state
|
void |
stopSubSys()
stopSubSys: put TS sub system into the ready state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, postBuild, postShutdown, shutdown, startpublic static final String BROADCAST_TASK
public TSSubSys(String configName)
configName - public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareExceptionprotected void periodicBroadcast()
@Command(type=ACTION,
description="Put system in safe mode")
public void powerOutageAction()
@Command(type=QUERY,
description="raise subsystem alert")
public void raiseTSAlert(String alertmsg,
org.lsst.ccs.bus.states.AlertState severity)
alertmsg - severity - public boolean processAlarm(int event,
int parm,
String cause,
String alarmName)
processAlarm in interface org.lsst.ccs.monitor.Monitor.AlarmHandler@Command(name="soundAlarm") public void soundAlarm()
@Command(name="soundBleep") public void soundBleep()
@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
Vacq - cfgstate - Exception@Command(description="set configured cryo T target")
public void setCfgCryoTAcq(double Tacq,
int cfgstate)
throws Exception
Tacq - cfgstate - 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)
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)
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
vac_outlet - 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 - state2 - 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)
wl - @Command(name="setSlitWidthFile",
description="sets the slit width data file")
public void setSlitWidthFile(String fl)
fl - @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(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)
state - @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)
doTestStandReadyCheck - Copyright © 2019 LSST. All rights reserved.