
public static class SimDevice.Power extends PowerDevice
PowerDevice.PowerState| Constructor and Description |
|---|
Power() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
close()
Closes the connection.
|
boolean |
getOutput(int chan)
Gets the power supply output state.
|
protected void |
initDevice()
Performs configuration.
|
void |
initialize()
Performs basic initialization.
|
double |
readChannel(int hwChan,
int type)
Reads a channel.
|
double |
readCurrent(int chan)
Gets the power supply current.
|
double |
readVoltage(int chan)
Gets the power supply voltage.
|
void |
setCurrent(int chan,
double value)
Sets the power supply current.
|
void |
setOutput(int chan,
boolean value)
Sets the power supply output state.
|
void |
setVoltage(int chan,
double value)
Sets the power supply voltage.
|
enableOutput, setOnline, setPoweraddChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected void initDevice()
initDevice in class org.lsst.ccs.monitor.Devicepublic void initialize()
initialize in class org.lsst.ccs.monitor.Devicepublic void close()
close in class org.lsst.ccs.monitor.Devicepublic int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - hwChan - type - subtype - Exceptionpublic double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - type - public void setVoltage(int chan,
double value)
setVoltage in class PowerDevicechan - The hardware channelvalue - The voltage to setpublic void setCurrent(int chan,
double value)
setCurrent in class PowerDevicechan - The hardware channelvalue - The current to setpublic void setOutput(int chan,
boolean value)
setOutput in class PowerDevicechan - The hardware channelvalue - The output state to setpublic double readVoltage(int chan)
readVoltage in class PowerDevicechan - The hardware channelpublic double readCurrent(int chan)
readCurrent in class PowerDevicechan - The hardware channelpublic boolean getOutput(int chan)
getOutput in class PowerDevicechan - The hardware channelCopyright © 2019 LSST. All rights reserved.