
public class RebPsDevice
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static class |
RebPsDevice.ChanName |
static interface |
RebPsDevice.Event
Interface for open/close event listener.
|
static class |
RebPsDevice.PsName
Public constants.
|
| Constructor and Description |
|---|
RebPsDevice() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype) |
boolean |
checkPsTripped()
Checks whether a power supply has tripped.
|
void |
clearListener()
Clears the event listener.
|
protected void |
close() |
String |
dumpInfo() |
String |
getBulkPsSwitchName()
Get the name of the switch name controlling this PS board.
|
double[] |
getDacs(boolean getHV)
Gets a set of DPHI or HV bias DAC values.
|
int[] |
getErrors()
Gets the error counters.
|
org.lsst.ccs.drivers.auxelex.RebPS |
getPs()
Gets the power supply driver.
|
String |
getPsId()
Gets the power supply ID.
|
int |
getPsType()
Gets the power supply type.
|
int |
getPsVersion()
Gets the power supply version.
|
org.lsst.ccs.bus.states.StateBundle |
getRebPsDeviceState() |
protected void |
initChannel(String name,
int id,
int hwChan,
int type,
int subtype) |
protected void |
initDevice() |
protected void |
initialize() |
double[] |
readChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
Reads extrema for a power supply channel
|
protected double |
readChannel(int hwChan,
int type) |
int[] |
readRegs(int addr,
int count) |
void |
resetChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
Resets extrema for a power supply channel
|
void |
sequencePower(boolean on)
Sequences a whole power supply on or off.
|
void |
sequencePower(int reb,
boolean on)
Sequences a power supply section on or off.
|
void |
setBiasDac(int rebNum,
double value)
Sets a HV bias DAC value.
|
void |
setConsecutiveExceptiionsToOffline(int nExceptions)
Set the number of consecutive exceptions that will put the device offline.
|
void |
setDphiDac(int rebNum,
double value)
Sets a DPHI DAC value.
|
void |
setListener(RebPsDevice.Event listen)
Sets an event listener.
|
protected void |
setOnline(boolean online) |
void |
setPowerOn(int reb,
int psNum,
boolean on)
Turns a power supply on or off.
|
void |
setReadTimeout(long timeout)
Set the timeout for the underlying driver.
|
void |
togglePower(int reb,
int psNum)
Toggles the on/off state of a power supply.
|
addLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOutputLines, start, testOnline@LookupPath protected String psPath
public void build()
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void setOnline(boolean online)
setOnline in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Devicepublic void setReadTimeout(long timeout)
timeout - Read timeout in ms.public void setConsecutiveExceptiionsToOffline(int nExceptions)
nExceptions - The number of consecutive exceptions.protected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.DeviceExceptionprotected void initChannel(String name, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicepublic boolean checkPsTripped()
public org.lsst.ccs.bus.states.StateBundle getRebPsDeviceState()
public double[] getDacs(boolean getHV)
getHV - If true, get HV Bias DACs; otherwise get DPHI DACspublic void setBiasDac(int rebNum,
double value)
throws PowerException
rebNum - The REB numbervalue - The value to setPowerExceptionpublic void setDphiDac(int rebNum,
double value)
throws PowerException
rebNum - The REB numbervalue - The value to setPowerExceptionpublic void setPowerOn(int reb,
int psNum,
boolean on)
throws PowerException
reb - The REB numberpsNum - The power supply number, or -1 for master switchon - Turn on if true, off if falsePowerExceptionpublic void togglePower(int reb,
int psNum)
throws PowerException
reb - The REB numberpsNum - The power supply number, or -1 for master switchPowerExceptionpublic void sequencePower(int reb,
boolean on)
throws PowerException
reb - The REB numberon - Turns on if true, off if falsePowerExceptionpublic void sequencePower(boolean on)
throws PowerException
on - Turns on if true, off if falsePowerExceptionpublic double[] readChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerExceptionpublic void resetChanExtrema(int reb,
RebPsDevice.PsName psName,
RebPsDevice.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerExceptionpublic void setListener(RebPsDevice.Event listen)
listen - The listener objectpublic void clearListener()
public int[] getErrors()
public org.lsst.ccs.drivers.auxelex.RebPS getPs()
public int getPsType()
public int getPsVersion()
public String getPsId()
@Command(name="dump", type=ACTION, level=1, description="Dump info about power supply") public String dumpInfo() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readReg", type=ACTION, level=1, description="Query one or more registers") public int[] readRegs(int addr, @Argument(defaultValue="1") int count) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getBulkPsSwitchName()
Copyright © 2022 LSST. All rights reserved.