public class TestFW extends Object
| Constructor and Description |
|---|
TestFW()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connection
|
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 filter wheel.
|
String |
readFWpos()
Read filter wheel position.
|
void |
saveSettings()
Save settings for next power-up
|
void |
setDataRate(int value)
Set baud rate
|
void |
setDebug(boolean mode)
Set debug mode on or off
|
void |
setFWsize(int value)
Set total number of positions
|
void |
setPosition(int value)
Command to move filter wheel
|
void |
setSensorMode(int value)
Set sensor mode for idle FW ("inactive" may avoid stray light)
|
void |
setSpeed(int value)
Set filter wheel speed
|
void |
setTrigMode(int value)
Set usage of trigger connector
|
String |
timestamp()
Determines current time
|
@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="readFWpos",
description="Read filter wheel position")
public String readFWpos()
throws org.lsst.ccs.drivers.commons.DriverException
Driver - Exceptionorg.lsst.ccs.drivers.commons.DriverException@Command(name="setPosition",
description="Set filter wheel positions")
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(name="setFWsize",
description="Set number of FW positions")
public void setFWsize(@Argument(name=" <6|12>",description="Number of filter wheel positions")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
Total - number of positions for physical FW (6 or 12)org.lsst.ccs.drivers.commons.DriverException@Command(name="setTrigMode",
description="Set usage of trigger connector")
public void setTrigMode(@Argument(name=" <0|1>",description="trigger connector mode <input|output>")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
0 - for input, 1 for output (signal when move is complete)org.lsst.ccs.drivers.commons.DriverException@Command(name="setSpeed",
description="Set filter wheel speed")
public void setSpeed(@Argument(name=" <0|1>",description="filter wheel speed <low|high>")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
0 - for slow speed, 1 for high speedorg.lsst.ccs.drivers.commons.DriverException@Command(name="setSensorMode",
description="Set sensor mode for idle FW")
public void setSensorMode(@Argument(name=" <0|1>",description="sensor mode <inactive|active> if FW idle")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
0 - (inactive) or 1 (active)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 settings for next power-up")
public void saveSettings()
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.