
public class AP7900Device extends org.lsst.ccs.subsystem.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.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
boolean |
getOutletState(int outlet)
get an outlet state *
**************************************************************************
|
int |
getState() |
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
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, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, init, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic 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 configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - **************************************************************************protected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.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.subsystem.monitor.DeviceExceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.subsystem.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 © 2016 LSST. All rights reserved.