public class RebPower extends Object implements org.lsst.ccs.framework.HasLifecycle, RebPsDevice.Event
| Constructor and Description |
|---|
RebPower() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Override build method of HasLifecycle.
|
void |
closed()
Called when a power supply device is closed.
|
double[] |
getChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
Reads the maximum and minimum values of a channel.
|
int[] |
getErrors()
Gets the power supply error counters.
|
RebPsFullState |
getFullState()
Gets the full REB power supply state.
|
void |
init()
Override init method of HasLifecycle.
|
void |
opened()
Called when a power supply device is opened.
|
void |
postInit()
Initializes the power subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
resetChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
Resets the maximum and minimum values of a channel.
|
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 |
setSimulatedRebPower(String rebName,
double rebPower)
Sets the simulated REB power
|
void |
setUpdatePeriod(int period)
Sets the update (tick) period.
|
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.
|
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init 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.HasLifecycle@Command(type=ACTION,
description="Set simulated reb power")
public void setSimulatedRebPower(@Argument(name="rebName")
String rebName,
@Argument(name="rebPower",description="The simulated Reb Total power")
double rebPower)
rebName - rebPower - @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="Read a channel\'s maximum & minimum values")
public double[] getChanExtrema(@Argument(description="REB number")
int reb,
@Argument(description="PS name")
RebPsDevice.PsName psName,
@Argument(description="Channel name")
RebPsDevice.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerException@Command(type=ACTION,
description="Reset a channel\'s maximum & minimum values")
public void resetChanExtrema(@Argument(description="REB number")
int reb,
@Argument(description="PS name")
RebPsDevice.PsName psName,
@Argument(description="Channel name")
RebPsDevice.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerException@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()
public void opened()
opened in interface RebPsDevice.Eventpublic void closed()
closed in interface RebPsDevice.EventCopyright © 2018 LSST. All rights reserved.