
public class RebPower extends org.lsst.ccs.framework.Module implements org.lsst.ccs.framework.HardwareController, RebPsDevice.Event
| Constructor and Description |
|---|
RebPower(String name,
int tickMillis,
int monMillis,
String configName)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
void |
checkStarted()
Checks whether hardware is started.
|
void |
checkStopped()
Checks whether hardware is stopped.
|
void |
closed() |
int[] |
getErrors()
Gets the power supply error counters.
|
RebPsFullState |
getFullState()
Gets the full REB power supply state.
|
void |
initModule()
Initializes the power subsystem.
|
void |
opened() |
void |
quit()
Terminates the program.
|
void |
saveConfig()
Saves the configuration data.
|
void |
sequencePower(int reb,
boolean on)
Sequences a power supply on or off.
|
void |
setBiasDac(int reb,
double value)
Sets a HV bias DAC value.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic power data broadcast.
|
void |
toggleMainPower()
Toggles the main power supply on or off.
|
void |
togglePower(int reb,
int ps)
Toggles the on/off state of a power supply element.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, 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, start, submitChange, submitChanges, validateBulkChangepublic 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.Module@Command(type=ACTION, description="Set the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - The tick period (milliseconds) to set.@Command(type=ACTION, description="Save the current configuration") public void saveConfig() throws IOException
IOException@Command(type=ACTION, description="Control the main power supply") public void toggleMainPower() throws Exception
PowerExceptionException@Command(type=ACTION, description="Toggle a power supply element") public void togglePower(int reb, int ps) throws PowerException
reb - The REB numberps - The power supply numberPowerException@Command(type=ACTION, description="Sequence a power supply") public void sequencePower(int reb, boolean on) throws PowerException
reb - The REB numberon - Turns on if true, off if falsePowerException@Command(type=ACTION, description="Set a HV bias DAC") public void setBiasDac(int reb, double value) throws PowerException
reb - The REB numbervalue - The value to setPowerException@Command(type=QUERY, description="Get the full state") public RebPsFullState getFullState() throws Exception
Exception@Command(type=QUERY, description="Get the error counters") public int[] getErrors()
@Command(type=ACTION, description="Terminate the program") public void quit()
public void opened()
opened in interface RebPsDevice.Eventpublic void closed()
closed in interface RebPsDevice.EventCopyright © 2016 LSST. All rights reserved.