public class NewportLamp
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
NewportLamp.onOff
Public constants *
**************************************************************************
|
| Constructor and Description |
|---|
NewportLamp()
Constructor * *
**************************************************************************
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
double |
getAmps()
Gets the NewportLamp amps reading *
**************************************************************************
|
String |
getIdent()
Gets the NewportLamp identity.
|
boolean |
getState()
Gets the NewportLamp power state.
|
void |
init()
Initiolizes device.
|
void |
open(String serialname,
int port,
int addr)
Opens a connection.
|
void |
openftdi(String serialname,
int port,
int addr)
Opens an FTDI connection.
|
String |
readNewportLamp()
Reads a response.
|
String |
readNewportLamp(String command)
Reads a response after writing a command.
|
void |
setState(boolean on)
Turns lamp on or off.
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
writeNewportLamp(String command)
Writes a command.
|
public NewportLamp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String serialname, int port, int addr) throws org.lsst.ccs.drivers.commons.DriverException
baud - The baud ratedummy - Dummy argument * * @throws DriverException *
**************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int port, int addr) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setState(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getState()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getIdent() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getAmps()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeNewportLamp(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readNewportLamp() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic String readNewportLamp(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2014 LSST. All rights reserved.