public class RebPsDeviceOld
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
static class |
RebPsDeviceOld.ChanName |
static interface |
RebPsDeviceOld.Event
Interface for open/close event listener.
|
static class |
RebPsDeviceOld.PsName
Public constants.
|
| Constructor and Description |
|---|
RebPsDeviceOld() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a monitoring channel's parameters for validity.
|
boolean |
checkPsTripped()
Checks whether a power supply has tripped.
|
void |
clearListener()
Clears the event listener.
|
protected void |
close()
Closes the connection.
|
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.
|
RebTrippedState[] |
getPsTrippedStatus()
Checks whether a power supply has tripped.
|
int |
getPsType()
Gets the power supply type.
|
int |
getPsVersion()
Gets the power supply version.
|
int[] |
getState()
Gets the power state data.
|
protected void |
initChannel(org.lsst.ccs.monitor.Channel ch)
Initializes a monitoring channel.
|
protected void |
initDevice()
Performs configuration checking.
|
protected void |
initialize()
Performs full initialization.
|
double[] |
readChanExtrema(int reb,
RebPsDeviceOld.PsName psName,
RebPsDeviceOld.ChanName chan)
Reads extrema for a power supply channel
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a monitoring channel.
|
void |
resetChanExtrema(int reb,
RebPsDeviceOld.PsName psName,
RebPsDeviceOld.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 |
setDphiDac(int rebNum,
double value)
Sets a DPHI DAC value.
|
void |
setListener(RebPsDeviceOld.Event listen)
Sets an event listener.
|
void |
setPowerOn(int reb,
int psNum,
boolean on)
Turns a power supply on or off.
|
void |
togglePower(int reb,
int psNum)
Toggles the on/off state of a power supply.
|
addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, start, testOnline@LookupPath protected String psPath
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicech - The channel to checkException - If parameters are invalidprotected void initChannel(org.lsst.ccs.monitor.Channel ch)
initChannel in class org.lsst.ccs.monitor.Devicech - The channel to initializeprotected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.monitor.Devicech - The channel to readpublic boolean checkPsTripped()
public RebTrippedState[] getPsTrippedStatus()
public int[] getState()
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,
RebPsDeviceOld.PsName psName,
RebPsDeviceOld.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerExceptionpublic void resetChanExtrema(int reb,
RebPsDeviceOld.PsName psName,
RebPsDeviceOld.ChanName chan)
throws PowerException
reb - The REB numberpsName - The power supply enumchan - The channel enumPowerExceptionpublic void setListener(RebPsDeviceOld.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()
Copyright © 2022 LSST. All rights reserved.