public class ThorlabsFWDevice
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected String |
devcId |
protected List<String> |
filterNames |
protected Integer |
fwsize |
protected Boolean |
sensorMode |
protected Boolean |
speedMode |
protected org.lsst.ccs.services.AgentStateService |
stateService |
| Constructor and Description |
|---|
ThorlabsFWDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String chName,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
String |
listFilters()
Command to list filter names by position
|
String |
readAll()
Read all settings and data from filter wheel
Loops over all read commands and returns them in a table format.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
String |
readFWPos()
Read filter-wheel position
|
void |
setNamedPosition(String posName)
Command to move filter wheel with position selected by name
(published as State change)
|
void |
setPosition(int value)
Command to move filter wheel (published as State change)
|
void |
setSensorMode(Boolean mode)
Select sensor mode when filter wheel is idle
|
void |
setSpeedMode(Boolean mode)
Select speed for filter wheel motion
|
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@LookupField(strategy=TREE) protected org.lsst.ccs.services.AgentStateService stateService
@ConfigurationParameter(isFinal=true,
description="port Id")
protected String devcId
@ConfigurationParameter(isFinal=true,
description="6 or 12 for filter-wheel size")
protected Integer fwsize
@ConfigurationParameter(isFinal=true,
description="List of filter names")
protected List<String> filterNames
@ConfigurationParameter(description="<false|true> for <low|high> speed of motion") protected Boolean speedMode
@ConfigurationParameter(description="<false|true> for sensors <inactive|active> when wheel idle") protected Boolean sensorMode
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Device@ConfigurationParameterChanger(propertyName="speedMode") public void setSpeedMode(Boolean mode) throws org.lsst.ccs.drivers.commons.DriverException
mode - True for high-speed, false for low-speedorg.lsst.ccs.drivers.commons.DriverException@ConfigurationParameterChanger(propertyName="sensorMode") public void setSensorMode(Boolean mode) throws org.lsst.ccs.drivers.commons.DriverException
mode - True for active, false for inactiveorg.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY,
name="listFilters",
description="List filter names by position")
public String listFilters()
@Command(type=ACTION,
name="setPosition",
description="Set filter wheel position")
public void setPosition(@Argument(name="<int>",description="New position, 1 to maximum")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Position - to move to (1 to maximum)org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="setNamedPosition",
description="Set filter wheel to named position")
public void setNamedPosition(@Argument(name="<String>",description="Name of new position")
String posName)
throws org.lsst.ccs.drivers.commons.DriverException
Name - of selected filterorg.lsst.ccs.drivers.commons.DriverExceptionprotected int[] checkChannel(String chName, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.DevicechName - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.@Command(type=QUERY,
name="readFWPos",
description="Read filter wheel position")
public String readFWPos()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(type=QUERY,
name="readAll",
description="Read all filter-wheel controller settings and data")
public String readAll()
Copyright © 2018 LSST. All rights reserved.