public class PowerControl extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Data fields.
|
protected PowerDevice |
pDevc |
| Constructor and Description |
|---|
PowerControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeVoltage(double value)
Changes the voltage.
|
double |
getCurrent()
Gets the current.
|
PowerDevice |
getDevice()
Gets the associated device
|
int |
getHwChan()
Gets the hardware channel.
|
double |
getOffDelay()
Gets the power-off delay.
|
double |
getOnDelay()
Gets the power-on delay.
|
double |
getVoltage()
Gets the voltage.
|
void |
init()
Life-cycle initialization.
|
double |
readCurrent()
Reads the current from the hardware.
|
Boolean |
readOutput()
Reads the power output state from the hardware.
|
double |
readVoltage()
Reads the voltage from the hardware.
|
void |
setCurrent(double value)
Sets the current.
|
void |
setOffDelay(double value)
Sets the power-off delay.
|
void |
setOnDelay(double value)
Sets the power-on delay.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
writeAll()
Writes all set quantities to the hardware.
|
void |
writeCurrent()
Writes the current to the hardware.
|
void |
writeOffDelay()
Writes the power-off delay to the hardware.
|
void |
writeOnDelay()
Writes the power-on delay to the hardware.
|
void |
writeOutput(boolean on)
Writes the power output state to the hardware.
|
void |
writeVoltage()
Writes the voltage to the hardware.
|
@LookupName protected String name
@LookupField(strategy=ANCESTORS) protected PowerDevice pDevc
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void setVoltage(double value)
value - The value to setpublic double getVoltage()
public void setCurrent(double value)
value - The value to setpublic double getCurrent()
public void setOnDelay(double value)
value - The value to set (secs)public double getOnDelay()
public void setOffDelay(double value)
value - The value to set (secs)public double getOffDelay()
public void changeVoltage(double value)
throws PowerException
value - The value to setPowerExceptionpublic void writeAll()
throws PowerException
PowerExceptionpublic void writeVoltage()
throws PowerException
PowerExceptionpublic double readVoltage()
throws PowerException
PowerExceptionpublic void writeCurrent()
throws PowerException
PowerExceptionpublic double readCurrent()
throws PowerException
PowerExceptionpublic void writeOnDelay()
throws PowerException
PowerExceptionpublic void writeOffDelay()
throws PowerException
PowerExceptionpublic void writeOutput(boolean on)
throws PowerException
on - Whether to set output onPowerExceptionpublic Boolean readOutput()
public PowerDevice getDevice()
public int getHwChan()
Copyright © 2022 LSST. All rights reserved.