The Dynamics Line (D-Line) at Shanghai Synchrotron Radiation Facility (SSRF) is the first beamline in the world that combines synchrotron radiation infrared spectroscopy (SR-IR) with energy dispersive X-ray absorption spectroscopy (ED-XAS) to simultaneously detect the dynamic changes of the atomic, electronic and molecular structures of matter, which has important scientific value for the study of the structure of complex materials. Unlike conventional scanning X-ray absorption spectroscopy (XAS), ED-XAS technique uses a position-sensitive detector to obtain data files in image format, and the intensities of incident X-ray beam (I0) and exit X-ray beam (I1) after sample absorption are not collected simultaneously, ED-XAS spectrum cannot be observed in real time.
This study aims to develop a set of fast data acquisition and processing system for image format based on the requirements of ED-XAS experiments in D-Line.
Firstly, an object-oriented application programming interface (API) was developed using Python language, xiAPI Python interface, to access the XIMEA detector and obtain NumPy array format of I0, I1 and the intensity of detector background signal (Idark). Then XAFS spectrum was calculated using the absorption coefficient formula, and drawn through matplotlib library. Finally, a user-friendly operating interface was developed using Qt Designer to show the real-time XAFS spectrum.
The results show that the connection with the detector in python language and the python third library This rapid data acquisition and processing system written by Python can quickly obtain the ED-XAS spectrum, it has been put into operation at ED-XAS station, providing an important analytical tool for the finding of rapid structural change and greatly improves the experimental efficiency.