public class ThorlabsSC10Device
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
protected String |
devcId |
protected Boolean |
outputMode |
protected org.lsst.ccs.services.AgentStateService |
stateService |
| Constructor and Description |
|---|
ThorlabsSC10Device() |
| 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.
|
void |
closeShutter()
Command to close shutter
|
void |
exposure(Duration duration)
Command to open shutter for a specified time interval
|
protected void |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
boolean |
isShutterClosed()
Check whether shutter is closed or open
|
void |
openShutter()
Command to open shutter
|
String |
readAll()
Read all settings and data from shutter controller
Loops over all read commands and returns them in a table format.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
void |
setOutputMode(Boolean mode)
Select mode for output signal
|
boolean |
waitForClosed()
Command to wait for shutter to close after an exposure
(For temporary use until shutter state is monitored via GPIO)
If the first check is too soon after the exposure was initiated,
the shutter might not yet have opened; treat this check specially.
|
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="<false|true> for output open/closed line to follow <shutter|controller> ")
protected Boolean outputMode
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.Devicepublic boolean isShutterClosed()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@ConfigurationParameterChanger(propertyName="outputMode") public void setOutputMode(Boolean mode) throws org.lsst.ccs.drivers.commons.DriverException
mode - org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="openShutter",
description="Open shutter",
autoAck=false)
public void openShutter()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="closeShutter",
description="Close shutter",
autoAck=false)
public void closeShutter()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="exposure",
description="Open shutter for specified time interval (ms)")
public void exposure(@Argument(name="<Duration>",description="exposure duration")
Duration duration)
throws org.lsst.ccs.drivers.commons.DriverException
duration - Open-duration as a Duration objectorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION,
name="waitForClosed",
description="Returns when shutter is closed or upon timeout",
autoAck=false)
public boolean waitForClosed()
throws Exception
Exceptionprotected 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="readAll",
description="Read all filter-wheel controller settings and data")
public String readAll()
Copyright © 2018 LSST. All rights reserved.