public class PcpPowerControl extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.Maq20Control
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PcpPowerControl.ChannelDesc |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CHAN_IN_CURRENT |
protected static int |
CHAN_IN_ENABLED |
protected static int |
CHAN_IN_VOLTAGE |
protected static int |
CHAN_OUT_CURRENT |
protected static int |
CHAN_OUT_VOLTAGE |
protected PcpPowerControl.ChannelDesc[] |
channelDescs |
protected Integer |
ident |
protected String |
inCurrent |
protected String |
inEnabled |
protected String |
inVoltage |
protected org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device |
maqDevc |
protected Double |
maxCurrent |
protected String |
name |
protected static int |
NUM_CHANNELS |
protected String |
outCurrent |
protected String |
outVoltage |
protected String |
path |
| Constructor and Description |
|---|
PcpPowerControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Pre-closure cleanup.
|
int |
getIdent()
Gets the identification.
|
String |
getName()
Gets the name.
|
String |
getPath()
Gets the path.
|
void |
init()
Life-cycle initialization.
|
void |
initialize()
Post-connection initialization.
|
boolean |
isOutputOn()
Gets whether output enabled.
|
double |
readCurrent()
Reads a current.
|
double |
readVoltage()
Reads a voltage.
|
void |
setCurrent(double value)
Sets a current.
|
void |
setVoltage(double value)
Sets a voltage.
|
protected static final int CHAN_IN_VOLTAGE
protected static final int CHAN_OUT_VOLTAGE
protected static final int CHAN_IN_CURRENT
protected static final int CHAN_OUT_CURRENT
protected static final int CHAN_IN_ENABLED
protected static final int NUM_CHANNELS
@LookupName protected String name
@LookupPath protected String path
@LookupField(strategy=ANCESTORS) protected org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device maqDevc
protected Integer ident
protected String inVoltage
protected String outVoltage
protected String inCurrent
protected String outCurrent
protected String inEnabled
protected Double maxCurrent
protected final PcpPowerControl.ChannelDesc[] channelDescs
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void initialize()
throws org.lsst.ccs.drivers.commons.DriverException
initialize in interface org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.Maq20Controlorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
close in interface org.lsst.ccs.subsystem.common.devices.dataforth.Maq20Device.Maq20Controlpublic double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isOutputOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getName()
public String getPath()
public int getIdent()
Copyright © 2024 LSST. All rights reserved.