public class NewportLamp
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
NewportLamp.onOff
Public constants
|
org.lsst.ccs.drivers.ascii.Ascii.DataBits, org.lsst.ccs.drivers.ascii.Ascii.FlowCtrl, org.lsst.ccs.drivers.ascii.Ascii.Option, org.lsst.ccs.drivers.ascii.Ascii.Parity, org.lsst.ccs.drivers.ascii.Ascii.StopBits, org.lsst.ccs.drivers.ascii.Ascii.Terminator| Constructor and Description |
|---|
NewportLamp()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
errorCommand() |
boolean |
errorOpComplete() |
double |
getAmps()
Gets the NewportLamp amps reading.
|
double |
getCurrentLim() |
double |
getCurrentPreset() |
String |
getError() |
String |
getIdent()
Gets the NewportLamp identity.
|
int |
getPowerLim() |
int |
getPowerPreset() |
boolean |
getState()
required by teststand interface.
|
String |
getStatus()
Return the full Status byte.
|
double |
getVolts() |
double |
getWatts() |
void |
init()
Initializes device.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String devcName,
int baudRate,
int dataChar)
Opens a connection.
|
boolean |
parseErrorCommand(String err)
check the error register to see if command error bit is on.
|
boolean |
parseErrorOpComplete(String err)
Check the error register to see if Operation Complete bit on.
|
String |
readNewportLamp(String command)
Reads a response after writing a command.
|
void |
reset()
reset to factory defaults.
|
void |
setCurrentLim(double a) |
void |
setCurrentPreset(double a) |
void |
setMode(int mode)
sets the mode, 1 is power mode, and 0 is current mode.
|
void |
setPowerLim(int p) |
void |
setPowerPreset(int p) |
void |
setState(boolean on)
Turns lamp on or off.
|
boolean |
statusCalMode() |
boolean |
statusComm() |
boolean |
statusCurrentMode() |
boolean |
statusExt() |
boolean |
statusFault() |
boolean |
statusInterlock() |
boolean |
statusLampOn() |
boolean |
statusLimit() |
boolean |
statusPowerMode() |
int |
stripError(String err)
Return the error register.
|
int |
stripStatus(String status)
Strips off "STB" if present and converts hex code to int.
|
close, closeSilent, flush, getTimeout, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String devcName,
int baudRate,
int dataChar)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - identifies type of connection FTDI, SERIALdevcName - The device name of the serial portbaudRate - The baud ratedataChar - The data characteristics (not used)org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
public boolean getState()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setState(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int stripStatus(String status) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusLampOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusExt()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusPowerMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusCurrentMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusCalMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusFault()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusComm()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean statusInterlock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int stripError(String err) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getError() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean errorCommand()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean errorOpComplete()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean parseErrorCommand(String err) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean parseErrorOpComplete(String err) 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 setMode(int mode)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVolts()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getWatts()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentPreset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentPreset(double a)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentLim()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentLim(double a)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getPowerPreset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPowerPreset(int p)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getPowerLim()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPowerLim(int p)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readNewportLamp(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionorg.lsst.ccs.drivers.commons.DriverTimeoutExceptionCopyright © 2018 LSST. All rights reserved.