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
|
void |
waitForClosed()
Command to wait for shutter to close after an exposure.
|
addLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, start, testOnline@LookupField(strategy=TREE) protected org.lsst.ccs.services.AgentStateService stateService
@ConfigurationParameter(isFinal=true,
description="port Id")
protected volatile String devcId
@ConfigurationParameter(isFinal=true,
description="<false|true> for output open/closed line to follow <shutter|controller> ")
protected volatile 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,
TimeoutException
duration - Open-duration as a Duration objectorg.lsst.ccs.drivers.commons.DriverExceptionTimeoutException@Command(type=ACTION,
name="waitForClosed",
description="Returns when shutter is closed after exposure",
autoAck=false)
public void waitForClosed()
throws TimeoutException
TimeoutExceptionprotected 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 © 2022 LSST. All rights reserved.