Next: About this document ... Up: SLS Detector text clients Previous: Retrieving detector parameters
Subsections

- Mandatory setup
- Standard acquisition
- Data processing

# Usage

## Mandatory setup

First, your detector should always be configured for each PC that you might want to use for controlling the detector. To do that:

    sls_detector_put config mydetector.config

Refer to sample configuration files to produce the appropriate one for your detector.

One can configure all the detector settings in a parameter file `setup.det`, which is loaded by doing:

    sls_detector_put parameters setup.det

In the case of EIGER, the parameter file (`setup.det` needs to setup the proper bias voltage of the sensor, i.e. needs to contain the line `vhighvoltage 150`.

## Standard acquisition

You will then need to setup the detector threshold and settings, the exposure time, the number of real time frames and eventually how many real time frames should be acquired:

    sls_detector_put settings standard
    sls_detector_put threshold 6000
    sls_detector_put exptime 1.
    sls_detector_put frames 10

In this case 10 consecutive 1s frames will be acquired.

You need to setup where the files will be written to

    sls_detector_put outdir /scratch
    sls_detector_put fname run
    sls_detector_put index 0

this way your files will all be named /scratch/run_fj_i.dat where j goes between 0 and 9 and is relative to the frame number, i starts from 0 and is automatically incremented. The next acquisition it will be 1.

To acquire simply type

    sls_detector_acquire

You can poll the detector status using

    sls_detector_get status

## Data processing

Flat field and rate corrections can be applied directly by simply selecting:

    sls_detector_put flatield myflatfield.raw
    sls_detector_put ratecorr -1

Next: About this document ... Up: SLS Detector text clients Previous: Retrieving detector parameters