public class TrippLitePDUDevice extends org.lsst.ccs.monitor.Device implements PDUDevice
| Constructor and Description |
|---|
TrippLitePDUDevice()
Constructor *
**************************************************************************
|
TrippLitePDUDevice(String host,
int port)
TrippLitePDUDevice constructor - put TrippLitePDU in initial subsystem state
|
| 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 |
getOutletState(int outlet)
get an outlet state *
**************************************************************************
|
int |
getState() |
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Initializes the device
**************************************************************************
|
void |
openftdi(String host,
int port,
int major_version)
Opens FTDI connection to a device.
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setOutletState(int outlet,
boolean otlstate)
set an outlet state *
**************************************************************************
|
void |
setState(int istate) |
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlinepublic TrippLitePDUDevice(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
host - device addressport - port or baud * * @param runBias CCD bias voltage while
runningorg.lsst.ccs.drivers.commons.DriverException - **************************************************************************public TrippLitePDUDevice()
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Device@Command(name="openftdi",
description="Open FTDI connection to device")
public void openftdi(@Argument(name="serialname",description="Serial device name")
String host,
@Argument(name="baud",description="baud rate")
int port,
@Argument(name="major_version",description="major version of PDU firmware")
int major_version)
throws org.lsst.ccs.drivers.commons.DriverException
host - port - major_version - org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="setOutletState",
description="set the state of an outlet")
public void setOutletState(@Argument(name="outlet",description="outlet number")
int outlet,
@Argument(name="otlstate",description="on(true)/off(false) state")
boolean otlstate)
setOutletState in interface PDUDeviceoutlet - otlstate - @Command(type=ACTION,
name="getOutletState",
description="set the state of an outlet")
public boolean getOutletState(@Argument(name="outlet",description="outlet number")
int outlet)
getOutletState in interface PDUDeviceoutlet - public void Sleep(double secs)
protected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - hwChan - type - subtype - Exceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.monitor.Devicechan - type - subtype - protected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicechan - type - @Command(name="setstate",
description="set TrippLitePDU device status")
public void setState(int istate)
@Command(name="getstate",
description="get TrippLitePDU device status")
public int getState()
Copyright © 2022 LSST. All rights reserved.