public class TestSC10 extends Object
| Constructor and Description |
|---|
TestSC10()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connection
|
String |
listOpModes()
List codes for operating modes
|
void |
loadFromProm()
Load those settings stored in EEPROM
|
void |
open(String ident)
Opens connection to a device using default baud rate
|
void |
open(String ident,
int baudRate)
Opens connection to a device
|
String |
readAll()
Read all settings and data from shutter.
|
String |
readMode()
Read and decode the settings for operation and trigger modes
|
String |
readSCpos()
Read shutter position.
|
void |
saveSettings()
Save (some?) settings to non-volatile flash memory
|
void |
saveToProm()
Save some settings to EEPROM
(trig mode, open and closed durations, probably operating mode)
|
void |
setClosedDuration(int value)
Set duration of shutter closed in ms
(relevant to REPEAT and AUTO modes)
|
void |
setDataRate(int value)
Set baud rate
|
void |
setDebug(boolean mode)
Set debug mode on or off
|
void |
setOpenDuration(int value)
Set duration of shutter open in ms
(relevant to SINGLE, REPEAT and AUTO modes)
|
void |
setOpMode(int value)
Set operating mode (five choices).
|
void |
setOutputTrig(int value)
Set meaning of external TTL trigger output
|
void |
setRepeatCount(int value)
Set repeat count for REPEAT operating mode.
|
void |
setTrigMode(int value)
Set trigger mode (internal or external)
|
String |
timestamp()
Determines current time
|
void |
toggleEnable()
Command to toggle "enable".
|
@Command(name="timestamp",
description="Prints current time")
public String timestamp()
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="ident",description="Identification")
String ident,
@Argument(name="baudRate",description="Baud rate, 9600 or 115200")
int baudRate)
throws org.lsst.ccs.drivers.commons.DriverException
ident - The identification (serial port name)baudRate - BAUD rate (9600 or 115200)org.lsst.ccs.drivers.commons.DriverException@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="ident",description="Identification")
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
ident - The identification (serial port name)org.lsst.ccs.drivers.commons.DriverException@Command(name="close",
description="Closes connection to device")
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readAll",
description="Read all controller settings and data")
public String readAll()
@Command(name="readSCpos",
description="Read shutter position, <0|1> = <open|closed>")
public String readSCpos()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readMode",
description="Decode operation and trigger modes")
public String readMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="listOpModes",
description="List option codes for operating modes")
public String listOpModes()
@Command(name="setTrigMode",
description="Set trigger mode")
public void setTrigMode(@Argument(name="<0|1>",description="trigger mode <internal|external>")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Mode - <0|1> for org.lsst.ccs.drivers.commons.DriverException@Command(name="setOpMode",
description="Set operating mode")
public void setOpMode(@Argument(name="<1|2|3|4|5>",description="operating mode (issue listOpModes for meanings)")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Mode - (1 to 5); use listOpModes command to see choicesorg.lsst.ccs.drivers.commons.DriverException@Command(name="setOutputTrig",
description="Set trigger mode")
public void setOutputTrig(@Argument(name="<0|1>",description="trigger output follows <shutter|controller>")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Mode - <0|1> for output follows org.lsst.ccs.drivers.commons.DriverException@Command(name="setRepeatCount",
description="Set count for repeat mode")
public void setRepeatCount(@Argument(name="1-99 repeats",description="in REPEAT mode")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Repeats, - 1 to 99org.lsst.ccs.drivers.commons.DriverException@Command(name="setOpenDuration",
description="Set shutter-open duration")
public void setOpenDuration(@Argument(name="1-999999 ms",description="shutter-open duration if SINGLE, REPEAT, AUTO")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Six - digits or fewerorg.lsst.ccs.drivers.commons.DriverException@Command(name="setClosedDuration",
description="Set shutter-closed duration")
public void setClosedDuration(@Argument(name="1-999999 ms",description="shutter-closed duration if REPEAT or AUTO mode")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Six - digits or fewerorg.lsst.ccs.drivers.commons.DriverException@Command(name="toggleEnable",
description="Initiate an internal trig or enable external trig")
public void toggleEnable()
throws org.lsst.ccs.drivers.commons.DriverException
Position - to move to (1 to maximum)org.lsst.ccs.drivers.commons.DriverException@Command(name="setDataRate",
description="Set baud rate. Danger: last-resort reset only!")
public void setDataRate(@Argument(name=" <0|1>",description="baud rate <9600|115200>")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
0 - (9600) or 1 (115200)org.lsst.ccs.drivers.commons.DriverException@Command(name="saveSettings",
description="Save some settings to non-volatile flash memory")
public void saveSettings()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="saveToProm",
description="Save some settings to EEPROM")
public void saveToProm()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="loadFromProm",
description="Load settings stored in EEPROM")
public void loadFromProm()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setDebug",
description="set debug mode <true|false>")
public void setDebug(@Argument(name="<true|false>",description="debug mode")
boolean mode)
Copyright © 2018 LSST. All rights reserved.