
public class Cornerstone260Device extends org.lsst.ccs.subsystem.monitor.Device implements MonochromatorDevice
| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.drivers.commons.MonochromatorDriver |
md |
| Constructor and Description |
|---|
Cornerstone260Device() |
Cornerstone260Device(int itype,
String host,
int port)
Constructor *
**************************************************************************
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
abort: *
**************************************************************************
|
void |
advanceSteps(int param)
advanceSteps: *
**************************************************************************
|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
close()
Closes connection to a device.
|
void |
closeShutter()
closeShutter: *
**************************************************************************
|
double |
getBandpass()
getBandpass: *
**************************************************************************
|
String |
getError()
getError: *
**************************************************************************
|
int |
getErrorCondition()
getErrorCondition: *
**************************************************************************
|
int |
getFilter()
getFilter: *
**************************************************************************
|
String |
getFilterLabel(int filter)
getFilterLabel: *
**************************************************************************
|
String |
getGrating()
getGrating: *
**************************************************************************
|
double |
getGratingFactor(int grat)
getGratingFactor: *
**************************************************************************
|
String |
getGratingLabel(int grat)
getGratingLabel: *
**************************************************************************
|
int |
getGratingLines(int grat)
getGratingLines: *
**************************************************************************
|
double |
getGratingOffset(int grat)
getGratingOffset: *
**************************************************************************
|
String |
getHandshake()
getHandshake: *
**************************************************************************
|
String |
getInfo()
getInfo: *
**************************************************************************
|
double |
getRunWave()
Returns the wl value for acquisition *
**************************************************************************
|
String |
getShutter()
getShutter: *
**************************************************************************
|
int |
getSlitSize(int slit)
getSlitSize: *
**************************************************************************
|
int |
getStep()
getStep: *
**************************************************************************
|
String |
getUnits()
getUnits: *
**************************************************************************
|
double |
getWave()
getWave: *
**************************************************************************
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Initializes the connection.
|
boolean |
isShutterOpen()
isShutterOpen: *
**************************************************************************
|
void |
open(String host)
Opens connection to a device.
|
void |
openShutter()
openShutter: *
**************************************************************************
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setBandpass(double bandpass)
setBandpass: *
**************************************************************************
|
void |
setCalibrate(double val)
setCalibrate: *
**************************************************************************
|
void |
setFilter(int pos)
setFilter: *
**************************************************************************
|
void |
setFilterLabel(int filter,
String label)
setFilterLabel: *
**************************************************************************
|
void |
setFilterLabels(String[] labels)
setFilterLabel: *
**************************************************************************
|
void |
setGrating(int param)
setGrating: *
**************************************************************************
|
void |
setGratingFactor(int grat,
double param)
setGratingFactor: *
**************************************************************************
|
void |
setGratingLabel(int param,
String label)
setGratingLabel: *
**************************************************************************
|
void |
setGratingLines(int grat,
int param)
setGratingLines: *
**************************************************************************
|
void |
setGratingOffset(int grat,
double param)
setGratingOffset: *
**************************************************************************
|
void |
setHandshake(int flag)
setHandshake: *
**************************************************************************
|
void |
setOutport(int num)
setOutport: *
**************************************************************************
|
void |
setRunWave(double runWave)
Sets the wl value for acquisition *
**************************************************************************
|
void |
setShutter(String param)
setShutter: *
**************************************************************************
|
void |
setSlitSize(int slit,
int microns)
setSlitSize: *
**************************************************************************
|
void |
setUnits(String param)
setUnits: *
**************************************************************************
|
void |
setWave(double wv)
setWave: *
**************************************************************************
|
addChannel, addChildConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, dropChannel, getConfigValues, getFullName, getOutputLines, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic Cornerstone260Device(int itype,
String host,
int port)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic Cornerstone260Device()
@Command(name="open", description="Open connection to device") public void open(@Argument(name="host",description="Host name") String host) throws org.lsst.ccs.drivers.commons.DriverException
open in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Device@Command(name="abort", description="") public void abort() throws org.lsst.ccs.drivers.commons.DriverException
abort in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getBandpass", description="") public double getBandpass() throws org.lsst.ccs.drivers.commons.DriverException
getBandpass in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setBandpass", description="") public void setBandpass(double bandpass) throws org.lsst.ccs.drivers.commons.DriverException
setBandpass in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setCalibrate", description="") public void setCalibrate(double val) throws org.lsst.ccs.drivers.commons.DriverException
setCalibrate in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getError", description="") public String getError() throws org.lsst.ccs.drivers.commons.DriverException
getError in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getFilter", description="") public int getFilter() throws org.lsst.ccs.drivers.commons.DriverException
getFilter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setFilter", description="") public void setFilter(int pos) throws org.lsst.ccs.drivers.commons.DriverException
setFilter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getFilterLabel", description="") public String getFilterLabel(int filter)
getFilterLabel in interface MonochromatorDevice@Command(name="setFilterLabel", description="") public void setFilterLabel(int filter, String label)
setFilterLabel in interface MonochromatorDevice@Command(name="setFilterLabels", description="") public void setFilterLabels(String[] labels)
setFilterLabels in interface MonochromatorDevice@Command(name="getGrating", description="") public String getGrating() throws org.lsst.ccs.drivers.commons.DriverException
getGrating in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGrating", description="") public void setGrating(int param) throws org.lsst.ccs.drivers.commons.DriverException
setGrating in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getGratingLabel", description="") public String getGratingLabel(int grat) throws org.lsst.ccs.drivers.commons.DriverException
getGratingLabel in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGratingLabel", description="") public void setGratingLabel(int param, String label) throws org.lsst.ccs.drivers.commons.DriverException
setGratingLabel in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getGratingLines", description="") public int getGratingLines(int grat) throws org.lsst.ccs.drivers.commons.DriverException
getGratingLines in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGratingLines", description="") public void setGratingLines(int grat, int param) throws org.lsst.ccs.drivers.commons.DriverException
setGratingLines in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getGratingFactor", description="") public double getGratingFactor(int grat) throws org.lsst.ccs.drivers.commons.DriverException
getGratingFactor in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGratingFactor", description="") public void setGratingFactor(int grat, double param) throws org.lsst.ccs.drivers.commons.DriverException
setGratingFactor in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getGratingOffset", description="") public double getGratingOffset(int grat) throws org.lsst.ccs.drivers.commons.DriverException
getGratingOffset in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setGratingOffset", description="") public void setGratingOffset(int grat, double param) throws org.lsst.ccs.drivers.commons.DriverException
setGratingOffset in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getHandshake", description="") public String getHandshake() throws org.lsst.ccs.drivers.commons.DriverException
getHandshake in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setHandshake", description="") public void setHandshake(int flag) throws org.lsst.ccs.drivers.commons.DriverException
setHandshake in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getInfo", description="") public String getInfo() throws org.lsst.ccs.drivers.commons.DriverException
getInfo in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setOutport", description="") public void setOutport(int num) throws org.lsst.ccs.drivers.commons.DriverException
setOutport in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getShutter", description="") public String getShutter() throws org.lsst.ccs.drivers.commons.DriverException
getShutter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="openShutter", description="") public void openShutter() throws org.lsst.ccs.drivers.commons.DriverException
openShutter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="closeShutter", description="") public void closeShutter() throws org.lsst.ccs.drivers.commons.DriverException
closeShutter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="isShutterOpen", description="") public boolean isShutterOpen() throws org.lsst.ccs.drivers.commons.DriverException
isShutterOpen in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setShutter", description="") public void setShutter(String param) throws org.lsst.ccs.drivers.commons.DriverException
setShutter in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setSlitSize", description="") public void setSlitSize(int slit, int microns) throws org.lsst.ccs.drivers.commons.DriverException
setSlitSize in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getSlitSize", description="") public int getSlitSize(int slit) throws org.lsst.ccs.drivers.commons.DriverException
getSlitSize in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getErrorCondition", description="") public int getErrorCondition() throws org.lsst.ccs.drivers.commons.DriverException
getErrorCondition in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getStep", description="") public int getStep() throws org.lsst.ccs.drivers.commons.DriverException
getStep in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="advanceSteps", description="") public void advanceSteps(int param) throws org.lsst.ccs.drivers.commons.DriverException
advanceSteps in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getUnits", description="") public String getUnits() throws org.lsst.ccs.drivers.commons.DriverException
getUnits in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setUnits", description="") public void setUnits(String param) throws org.lsst.ccs.drivers.commons.DriverException
setUnits in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="getWave", description="") public double getWave() throws org.lsst.ccs.drivers.commons.DriverException
getWave in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setWave", description="") public void setWave(double wv) throws org.lsst.ccs.drivers.commons.DriverException
setWave in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="setrunwave", description="Sets the wl value for acquisition") public void setRunWave(double runWave)
setRunWave in interface MonochromatorDevice@Command(name="getrunwave", description="Returns the wl value for acquisition") public double getRunWave()
getRunWave in interface MonochromatorDeviceprotected 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.DeviceCopyright © 2014 LSST. All rights reserved.