
public class Cornerstone260Device extends org.lsst.ccs.monitor.Device implements MonochromatorDevice
| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.drivers.cornerstone.C260 |
md |
| Constructor and Description |
|---|
Cornerstone260Device() |
| 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: * * -1 denotes No Error
**************************************************************************
|
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: returns information about the Monochromator
|
double |
getLastband() |
int |
getLastfltpos() |
int |
getLastgrat() |
int |
getLastshut() |
int |
getLaststep() |
int |
getLastSW1() |
int |
getLastSW2() |
double |
getLastwl() |
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 |
setFilterEdges(double[] edges)
setFilterEdges
***********************************************************************
|
void |
setFilterLabel(int filter,
String label)
This is needed for Monochromator interace, but not a Command;
and using it in setFilteLabels would not be thread-safe).
|
void |
setFilterLabels(String[] labels)
setFilterLabels:
|
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 |
setTimeout(double tko)
setTimeout: - set the read timeout in sec
|
void |
setUnits(String param)
setUnits: *
**************************************************************************
|
void |
setWave(double wv)
setWave: *
**************************************************************************
|
double |
setWaveAndFilter(double wv)
setWave: *
**************************************************************************
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initDevice, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnline@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.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.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(type=QUERY, 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(type=QUERY, name="getError", description="") public String getError() throws org.lsst.ccs.drivers.commons.DriverException
getError in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY, 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(type=QUERY, name="getFilterLabel", description="") public String getFilterLabel(int filter)
getFilterLabel in interface MonochromatorDevicefilter - public void setFilterLabel(int filter,
String label)
setFilterLabel in interface MonochromatorDevice@ConfigurationParameterChanger(propertyName="filter_labels") public void setFilterLabels(String[] labels)
setFilterLabels in interface MonochromatorDevice@ConfigurationParameterChanger(propertyName="filter_edges") public void setFilterEdges(double[] edges)
setFilterEdges in interface MonochromatorDevice@Command(type=QUERY, 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="return information about the C260") 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(type=QUERY, 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(type=QUERY, name="getSlitSize", description="") public int getSlitSize(int slit) throws org.lsst.ccs.drivers.commons.DriverException
getSlitSize in interface MonochromatorDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getLastwl()
getLastwl in interface MonochromatorDevicepublic double getLastband()
public int getLastfltpos()
getLastfltpos in interface MonochromatorDevicepublic int getLastshut()
getLastshut in interface MonochromatorDevicepublic int getLastSW1()
getLastSW1 in interface MonochromatorDevicepublic int getLastSW2()
getLastSW2 in interface MonochromatorDevicepublic int getLastgrat()
public int getLaststep()
@Command(type=QUERY, 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(type=QUERY, 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="setTimeout", description="set the read timeout") public void setTimeout(double tko) throws org.lsst.ccs.drivers.commons.DriverException
tko - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************@Command(name="setWaveAndFilter", description="sets wavelength and the corresponding appropriate filter") public double setWaveAndFilter(double wv) throws org.lsst.ccs.drivers.commons.DriverException
setWaveAndFilter 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.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.DeviceCopyright © 2021 LSST. All rights reserved.