public class PcpPowerDevice extends PowerDevice
PowerDevice.ChannelState| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device |
maqDevc |
static int |
N_HW_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(String name,
int hwChan,
String type,
String subtype)
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(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all heater channels as a group.
|
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, getMaxChannel, getMinChannel, getPower, hasNoLoad, hasVoltError, isEnabled, maintainPower, setOnline, setPoweraddLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOutputLines, start, testOnlinepublic static final int N_HW_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(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class PowerDevicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype string (not used)Exception - if any errors found in the parameters.protected void readChannelGroup()
readChannelGroup in class PowerDeviceprotected double readChannel(int hwChan,
int type)
readChannel in class PowerDevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.@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.