sls_detector_put config mydetector.configRefer 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.
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 10In 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 0this 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
sls_detector_put flatield myflatfield.raw sls_detector_put ratecorr -1