next up previous
Next: Data analysis Up: Data acquisition Previous: Data acquisition

Software

For the acquisition ot the data you need to install the slsDetector software package (please refere to separate documentation). The use of the GUI is optional and all operations can be performed also using the text client.

Please make sure that you have edited the
slsDetectorSoftware/usersFunctions/angleFunction.h
in order to match the angular conversion for your geometry and
slsDetectorSoftware/usersFunctions/usersFunctions.cpp
in order to be able to move the detector and read out its position by using the slsDetector software.

In the following the command to acquire a dataset for the angular calibration with an exposure time of 1 s, and position shift

#setup angular calibration log mode
> sls_detector_put angcallog 1 
#set exposure time to 1s
> sls_detector_put exptime 1. 
#setup threshold scan
> sls_detector_put scan0script position 
#setup the precision for the scan variable in the file name
> sls_detector_put scan0prec 2 
#set scan range between 20deg and -60deg, step of -0.1deg
# (at 12.4 keV the Si(111) peak is at approx 19deg
> sls_detector_put scan0range 20 -60 -0.1 
#acquire the data
> sls_detector_acquire
#unset angular calibration log mode
> sls_detector_put angcallog 0

With the GUI you can obtain the same results by clicking on the Angular calibration log button in the advanced tab (see figure 3.1) and setting up the motor position scan in the Actions tab (see figure 3.2). The exposure time should also be set in the measurement tab.

Additional to the data files, the acquisition will produce a .angcal file containing an header and, for each step of the acquisition, the exect value of the motor position and the file name.
In case you forgot to enable the angcallog flag in the software, you can produce the file with the syntax as follows, assuming that you know the exact values of your encoder for each frame:

type Mythen
maxmod 32
nmod 32
angconv /scratch/angcal20120422/ang.off
globaloff 5.088
fineoff 0.0
angdir 1
ffdir /scratch/angcal20120422/
flatfield flatfield_E12keV_T6keV_0.raw
badchannels /scratch/cal/bad.chans
19.99998 angcal_S20.00_0
19.90001 angcal_S19.90_0
19.79999 angcal_S19.80_0
19.70002 angcal_S19.70_0
......

Figure 3.1: Acquisition GUI window to enable the angular calibration log.
\includegraphics[width=\textwidth]{enable_angcal.eps}

Figure 3.2: Acquisition GUI window to setup the motor position scan.
\includegraphics[width=\textwidth]{position_scan.eps}


next up previous
Next: Data analysis Up: Data acquisition Previous: Data acquisition
Anna Bergamaschi 2012-11-21