7. GENERAL USAGE OF THE DETECTOR SYSTEM
7.1. Detector Control and Output
The EIGER2 detector system is controlled through the SIMPLON API, an interface to the detector that is based
on the http protocol and implemented on the detector control unit. The API Reference supplied with the
system describes this interface in detail and allows for easy integration of the detector control into the user
instrumentation independent of the operating system or programming language being used. Please refer to
the API Reference for details.
The data recorded by the detector can be accessed in dierent ways. Images can be stored by the lewriter
on the detector control unit as HDF5 les (see chapter 10). HDF5 les include metadata in a NeXus-compatible
format. Buered les have to be regularly fetched and subsequently deleted on the detector control unit as
buer space is limited
1
). Support for reading out multiple thresholds has been introduced in lewriter2. See
the API Reference for further details.
Data can also be fetched through the stream interface, which relies on the ZeroMQ
2
distributed messaging
protocol. The stream has a low latency and oers utmost exibility. The metadata is transferred as part of
the header. Streamed data is not buered and will be lost if not fetched or incompletely fetched. With the
introduction of stream2 it is possible to retrieve the images from multiple thresholds simultaneously at full
frame rates.
Lastly, the monitor interface provides images as raw ti les with minimal metadata. This is a low performance
and low bandwidth interface, which allows to retrieve the latest recorded image for monitoring purposes dur-
ing acquisitions. The monitor oers a relatively small buer. In case of buer overow, the oldest images will
be overwritten. The monitor also allows to retrieve the images from multiple thresholds.
7.2. Recording an Image or an Image Series
Caution #3
Data might have to be fetched concurrently to a running image series. The lifespan of the data
on the detector control unit is dependent on the conguration of your system as well as the
interface used for collecting data. Data not fetched within this lifespan is permanently lost.
To record images or image series, the following steps need to be performed through the SIMPLON API (see
the API Reference for details).
1. Make sure the detector has been set up according to the steps described in chapter 5.
2. Initialize the detector if this has not yet been done. The detector does not need to be reinitialized unless
the detector entered an error status.
3. Set the detector parameters for data acquisition and specify and congure the desired output interface
(le writer and/or stream interface). A list of essential conguration parameters can be found in sec-
tion 7.3.1.
4. Arm the detector
5. Record the image or image series.
• Send trigger(s) to record the image or image series as previously congured.
• Fetch data through the data interface(s).
6. Disarm the detector (to ensure les are nalized and closed).
7. Repeat from step 2 for further data acquisition with dierent settings or to step 3 for identical settings.
1
Buer space varies dependent on the conguration of your system, buer overow will cause loss of data. See API Reference for further
details.
2
ZeroMQ distributed messaging (http://zeromq.org/)
DECTRIS EIGER
®
2 User Manual v1.8.2 13 | 36