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 part)
Connects to a REB connected via DAQ1/2/4.
|
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 |
display(int ccd,
int length,
int offset)
Displays image data.
|
void |
interrupt()
Interrupts an image wait.
|
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(description="Connect to a REB")
public void connect(@Argument(description="REB ID")
int id)
throws REBException
id - The REB IDREBException@Command(description="Connect to a REB")
public void connect(@Argument(description="REB ID")
int id,
@Argument(description="Partition name")
String part)
throws REBException
id - The REB IDpart - The partition nameREBException@Command(description="Connect to a REB")
public void connect(@Argument(description="Hardware type")
TestImage.HdwType type,
@Argument(description="REB ID")
int id,
@Argument(description="Network interface name")
String ifcName)
throws REBException
type - The hardware type (DAQ, DAQ0, DAQ1, DAQ2. DAQ4, PCI0, PCI1)id - The REB IDifcName - The partition, network interface, or PCI device nameREBException@Command(description="Disconnect from a REB")
public void disconnect()
throws REBException
REBException@Command(description="Enable or disable image buffer re-use")
public void reuse(@Argument(description="Action to take")
TestImage.OnOff action)
action - The buffer re-use action: ON or OFF@Command(description="Enable or disable time display")
public void time(@Argument(description="Action to take")
TestImage.OnOff action)
action - The display action: ON or OFF@Command(description="Enable or disable the listener") public String listen(@Argument(description="Action to take") TestImage.OnOff action) throws REBException
action - The listener action: ON or OFFREBException@Command(description="Set the image display region")
public void region(@Argument(description="The region length (pixels)")
int length)
length - The length of the display region@Command(description="Set the image display region")
public void region(@Argument(description="The region length (pixels)")
int length,
@Argument(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(description="Display parameters") public String show()
@Command(name="wait",
description="Wait for an image to arrive")
public String awaitImage()
throws REBException
REBException@Command(description="Read an image") public String read() throws REBException
REBException@Command(description="Interrupt an image wait")
public void interrupt()
throws REBException
REBException@Command(description="Display image data") public String display(@Argument(description="The display region length (pixels)") int length)
length - The number of pixels to display@Command(description="Display image data") public String display(@Argument(description="The display region length (pixels)") int length, @Argument(description="The offset to the display region (pixels)") int offset)
length - The number of pixels to displayoffset - The offset to the first pixel@Command(description="Display image data") public String display(@Argument(description="The CCD number") int ccd, @Argument(description="The display region length (pixels)") int length, @Argument(description="The offset to the display region (pixels)") int offset)
ccd - The CCD numberlength - The number of pixels to displayoffset - The offset to the first pixel@Command(description="Display image metadata") public String metadata()
@Command(description="Reset the front end")
public void reset()
throws REBException
REBExceptionpublic void processImage(Image img)
processImage in interface ImageClient.Listenerimg - The received imageCopyright © 2021 LSST. All rights reserved.