public class TestImage extends Object implements ImageClient.Listener
| Modifier and Type | Class and Description |
|---|---|
static class |
TestImage.HdwType
Enumeration for hardware type.
|
static class |
TestImage.OnOff
Enumeration for on/off.
|
| Constructor and Description |
|---|
TestImage() |
| Modifier and Type | Method and Description |
|---|---|
String |
awaitImage()
Waits for an image to arrive.
|
void |
connect(int id)
Connects to a REB.
|
void |
connect(int id,
String ifcName)
Connects to a REB.
|
void |
connect(TestImage.HdwType type,
int id,
String ifcName)
Connects to a REB.
|
void |
disconnect()
Disconnects from a REB.
|
String |
display(int length)
Displays image data.
|
String |
display(int length,
int offset)
Displays image data.
|
String |
listen(TestImage.OnOff action)
Turns the listener on or off.
|
String |
metadata()
Displays image metadata.
|
void |
processImage(Image img)
Handles each received image.
|
String |
read()
Reads an image.
|
void |
region(int length)
Sets the internal image display region.
|
void |
region(int length,
int offset)
Sets the internal image display region.
|
void |
reset()
Resets the front end system.
|
void |
reuse(TestImage.OnOff action)
Turns image data buffer re-use on or off.
|
String |
show()
Displays parameters.
|
void |
time(TestImage.OnOff action)
Turns image acquisition time display on or off.
|
@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="id",description="REB ID")
int id)
throws REBException
id - The REB IDREBException@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="id",description="REB ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws REBException
id - The REB IDifcName - The network interface nameREBException@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="type",description="Hardware type")
TestImage.HdwType type,
@Argument(name="id",description="REB ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws REBException
type - The hardware type (DAQ0, DAQ1, PCI)id - The REB IDifcName - The network interface name or PCI device nameREBException@Command(name="disconnect",
description="Disconnect from a REB")
public void disconnect()
throws REBException
REBException@Command(name="reuse",
description="Enable or disable image buffer re-use")
public void reuse(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
action - The buffer re-use action: ON or OFF@Command(name="time",
description="Enable or disable time display")
public void time(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
action - The display action: ON or OFF@Command(name="listen",
description="Enable or disable the listener")
public String listen(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
action - The listener action: ON or OFF@Command(name="region",
description="Set the image display region")
public void region(@Argument(name="length",description="The region length (pixels)")
int length)
length - The length of the display region@Command(name="region",
description="Set the image display region")
public void region(@Argument(name="length",description="The region length (pixels)")
int length,
@Argument(name="offset",description="The offset to the region (pixels)")
int offset)
length - The length of the display regionoffset - The offset to the start of the region@Command(name="show",
description="Display parameters")
public String show()
@Command(name="wait",
description="Wait for an image to arrive")
public String awaitImage()
throws REBException
REBException@Command(name="read",
description="Read an image")
public String read()
throws REBException
REBException@Command(name="display",
description="Display image data")
public String display(@Argument(name="length",description="The display region length (pixels)")
int length)
length - The number of pixels to display@Command(name="display",
description="Display image data")
public String display(@Argument(name="length",description="The display region length (pixels)")
int length,
@Argument(name="offset",description="The offset to the display region (pixels)")
int offset)
length - The number of pixels to displayoffset - The offset to the first pixel@Command(name="metadata",
description="Display image metadata")
public String metadata()
@Command(name="reset",
description="Reset the front end")
public void reset()
throws REBException
REBExceptionpublic void processImage(Image img)
processImage in interface ImageClient.Listenerimg - The received imageCopyright © 2017 LSST. All rights reserved.