public class GlobalClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GlobalClient.Impl
Inner interface to support choosing the hardware.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HDW_TYPE_DAQ
Deprecated.
|
static int |
HDW_TYPE_DAQ0
Deprecated.
|
static int |
HDW_TYPE_DAQ1
Deprecated.
|
static int |
HDW_TYPE_DAQ2
Deprecated.
|
static int |
HDW_TYPE_DAQ4
Deprecated.
|
static int |
HDW_TYPE_PCI
Deprecated.
|
static int |
HDW_TYPE_PCI0
Deprecated.
|
static int |
HDW_TYPE_PCI1
Deprecated.
|
| Constructor and Description |
|---|
GlobalClient() |
| Modifier and Type | Method and Description |
|---|---|
long |
acquireImage(String name)
Acquires an image (by setting the trigger).
|
long |
acquireImage(String name,
String folder,
int opcode,
String annotation,
int... ids)
Acquires an image (by setting the trigger).
|
void |
close()
Closes a connection.
|
protected void |
finalize()
Finalizer.
|
int |
getHwType()
Gets the hardware type.
|
void |
open(int hdw,
int[] ids,
String[] ifcs)
Opens a connection to a set of REBs, i.e.
|
void |
open(String part)
Opens a connection to a DAQ V2/4 partition.
|
void |
setClientFactory(ClientFactory clientFactory)
Sets an alternative client factory.
|
void |
setRegisterlist(int rebType,
int[] registers)
Sets the list of registers to be read when the image is acquired.
|
long |
startSequencer(int opcode)
Starts the sequencer.
|
@Deprecated public static final int HDW_TYPE_DAQ
@Deprecated public static final int HDW_TYPE_DAQ0
@Deprecated public static final int HDW_TYPE_DAQ1
@Deprecated public static final int HDW_TYPE_DAQ2
@Deprecated public static final int HDW_TYPE_DAQ4
@Deprecated public static final int HDW_TYPE_PCI0
@Deprecated public static final int HDW_TYPE_PCI1
@Deprecated public static final int HDW_TYPE_PCI
protected void finalize()
throws Throwable
public void setClientFactory(ClientFactory clientFactory)
clientFactory - The ClientFactory to usepublic void open(String part) throws REBException
part - The partition nameREBExceptionpublic void open(int hdw,
int[] ids,
String[] ifcs)
throws REBException
hdw - The hardware typeids - The array of IDs of the REBs to connect toifcs - The names of the hardware interfaces to use for the
corresponding IDs. If null, or an element is null or
empty, the default interface is used.REBExceptionpublic void close()
throws REBException
REBExceptionpublic int getHwType()
throws REBException
REBExceptionpublic void setRegisterlist(int rebType,
int[] registers)
throws REBException
rebType - The encoded REB typeregisters - The array of register addressesREBExceptionpublic long acquireImage(String name) throws REBException
name - The name of the imageREBExceptionpublic long acquireImage(String name, String folder, int opcode, String annotation, int... ids) throws REBException
name - The name of the imagefolder - The image folder to useopcode - The sequencer opcodeannotation - The annotation for the imageids - An array of REB ids to use; if empty, use the whole partitionREBExceptionpublic long startSequencer(int opcode)
throws REBException
opcode - The sequencer opcodeREBExceptionCopyright © 2021 LSST. All rights reserved.