
public class AP7900Device extends org.lsst.ccs.monitor.Device implements PDUDevice
| Constructor and Description |
|---|
AP7900Device()
Constructor *
**************************************************************************
|
AP7900Device(String host,
int port)
AP7900Device constructor - put AP7900 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) |
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkStarted, checkStopped, checkTimeout, configure, disable, dropChannel, enable, getFullName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AP7900Device(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 AP7900Device()
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
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 PDUDevice@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 PDUDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.DeviceExceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Device@Command(name="setstate", description="set AP7900 device status") public void setState(int istate)
@Command(name="getstate", description="get AP7900 device status") public int getState()
Copyright © 2017 LSST. All rights reserved.