next up previous contents
Next: In which data format Up: SLS Detectors Software Previous: How can several controllers   Contents


How can the detector movement and position and I0 readout be customized for my beamline?

The easiest way to allow the software to perform all the necessary normalization and angular conversion steps, is enable it to move your detector and read the encoder position and the value of the ionization chamber.
These functions are defines as callbacks and can be redifined by registering your own functions. This is normally a good method if you use the API or are willing to write your main client program.
Otherwise the simpleast way is to edit the file
slsDetectorSoftware/usersFunctions/usersFunctions.cpp
where the default functions performing these actions are implemented and modify them to interface with your beamline hardware. The functions are written in C and are very simple to implement for anyone with some programming knowledge.
A simple high-level solution in case you need to maintain the software for several beamlines and don't want to recompile for all of them is to call external scripts.


next up previous contents
Next: In which data format Up: SLS Detectors Software Previous: How can several controllers   Contents
Thattil Dhanya 2019-04-08