public class RebPower extends org.lsst.ccs.framework.Module implements org.lsst.ccs.framework.HardwareController, RebPsDevice.Event
| Constructor and Description |
|---|
RebPower() |
| 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()
Called when a power supply device is 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()
Called when a power supply device is opened.
|
void |
postStart()
Starts the subsystem.
|
void |
quit()
Terminates the program.
|
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 |
setDphiDac(int reb,
double value)
Sets a DPHI DAC value.
|
void |
setMainPower(boolean on)
Turns the main power supply on or off.
|
void |
setNamedPowerOn(int reb,
RebPsEnum psEnum,
boolean on)
Turns a power supply on or off.
|
void |
setPowerOn(int reb,
int ps,
boolean on)
Turns a power supply on or off.
|
void |
setUpdatePeriod(int period)
Sets the update (tick) period.
|
void |
tick()
Performs periodic power data broadcast.
|
void |
toggleMainPower()
Toggles the main power supply state.
|
void |
toggleNamedPower(int reb,
RebPsEnum psEnum)
Toggles the on/off state of a power supply.
|
void |
togglePower(int reb,
int ps)
Toggles the on/off state of a power supply.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, 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, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, 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 postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION,
description="Set the update period")
public void setUpdatePeriod(@Argument(name="period",description="The tick period (msecs)")
int period)
period - The update period (milliseconds) to set.@Command(type=ACTION,
description="Turn the main power supply on or off")
public void setMainPower(@Argument(name="on",description="Whether on or off")
boolean on)
throws Exception
on - Turns the power on if true, off if falsePowerExceptionException@Command(type=ACTION,
description="Toggle the main power supply state")
public void toggleMainPower()
throws Exception
PowerExceptionException@Command(type=ACTION,
description="Turns a power supply on or off")
public void setPowerOn(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="ps",description="Power supply number")
int ps,
@Argument(name="on",description="Whether on or off")
boolean on)
throws PowerException
reb - The REB numberps - The power supply number, or -1 for master switchon - Turns the power on if true, off if falsePowerException@Command(type=ACTION,
description="Turns a power supply on or off")
public void setNamedPowerOn(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="name",description="Power supply name")
RebPsEnum psEnum,
@Argument(name="on",description="Whether on or off")
boolean on)
throws PowerException
reb - The REB numberpsEnum - The power supply enumerationon - Turns the power on if true, off if falsePowerException@Command(type=ACTION,
description="Toggle a power supply")
public void togglePower(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="ps",description="Power supply number")
int ps)
throws PowerException
reb - The REB numberps - The power supply numberPowerException@Command(type=ACTION,
description="Toggle a power supply")
public void toggleNamedPower(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="name",description="Power supply name")
RebPsEnum psEnum)
throws PowerException
reb - The REB numberpsEnum - The power supply enumerationPowerException@Command(type=ACTION,
description="Sequence a power supply")
public void sequencePower(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="on",description="Whether to turn on")
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(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="value",description="DAC value")
double value)
throws PowerException
reb - The REB numbervalue - The value to setPowerException@Command(type=ACTION,
description="Set a DPHI DAC")
public void setDphiDac(@Argument(name="reb",description="REB number")
int reb,
@Argument(name="value",description="DAC value")
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 © 2017 LSST. All rights reserved.