public static class SimDevice.Power extends PowerDevice
PowerDevice.ChannelStateconnType, devcId, devcParm, maxCurrent, minVoltage, MON_TYPE_CURRENT, MON_TYPE_POWER, MON_TYPE_VOLTAGE, mTypeMap, NETWORK_CONN_INVALID, psd, settlingTime, softMaxCurrent| Constructor and Description |
|---|
Power()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
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(org.lsst.ccs.monitor.Channel ch)
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.
|
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, testOnlineprotected void initDevice()
initDevice in class PowerDevicepublic void initialize()
initialize in class PowerDevicepublic void close()
close in class PowerDevicepublic int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class PowerDevicech - The Channel to check;Exceptionpublic double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class PowerDevicech - The Channel to read.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 © 2022 LSST. All rights reserved.