public class PcpPowerDevice extends PowerDevice
PowerDevice.ChannelState| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CENTER
Constants.
|
static int |
CHAN_MINUS_Y
Constants.
|
static int |
CHAN_PLUS_Y
Constants.
|
protected org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device |
maqDevc |
static int |
NUM_CHANS
Constants.
|
connType, devcId, devcParm, maxCurrent, minVoltage, MON_TYPE_CURRENT, MON_TYPE_POWER, MON_TYPE_VOLTAGE, mTypeMap, NETWORK_CONN_INVALID, psd, settlingTime, softMaxCurrent| Constructor and Description |
|---|
PcpPowerDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
boolean |
getOutput(int chan)
Gets the output state.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
double |
readCurrent(int chan)
Reads the current.
|
double |
readVoltage(int chan)
Reads the voltage.
|
void |
setCurrent(int chan,
double value)
Sets the current.
|
void |
setOutput(int chan,
boolean value)
Sets the output state.
|
void |
setVoltage(int chan,
double value)
Sets the voltage.
|
build, enableOutput, getConnType, getDevcId, getDevcParm, getGroupForChannel, getMaxChannel, getMinChannel, getPower, hasNoLoad, hasVoltError, isEnabled, maintainPower, readChannelGroup, setOnline, setPoweraddLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOutputLines, start, testOnlinepublic static final int CHAN_MINUS_Y
public static final int CHAN_CENTER
public static final int CHAN_PLUS_Y
public static final int NUM_CHANS
@LookupField(strategy=ANCESTORS) protected org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device maqDevc
protected void initDevice()
initDevice in class PowerDeviceprotected void initialize()
initialize in class PowerDeviceprotected void close()
close in class PowerDeviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class PowerDevicech - The Channel to check.Exception - if any errors found in the parameters.protected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class PowerDevicech - The Channel to read.@Command(type=ACTION) public void setOutput(int chan, boolean value) throws org.lsst.ccs.drivers.commons.DriverException
setOutput in class PowerDevicechan - The hardware channelvalue - The output state to set, true or falseorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION) public boolean getOutput(int chan) throws org.lsst.ccs.drivers.commons.DriverException
getOutput in class PowerDevicechan - The hardware channelorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION) public void setVoltage(int chan, double value) throws org.lsst.ccs.drivers.commons.DriverException
setVoltage in class PowerDevicechan - The hardware channelvalue - The voltage to setorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION) public double readVoltage(int chan) throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in class PowerDevicechan - The hardware channelorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION) public void setCurrent(int chan, double value) throws org.lsst.ccs.drivers.commons.DriverException
setCurrent in class PowerDevicechan - The hardware channelvalue - The current to setorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION) public double readCurrent(int chan) throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in class PowerDevicechan - The hardware channelorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2022 LSST. All rights reserved.