# Data Acquisition System Based on the Bluesky Suite in the Shanghai Synchrotron Radiation Facility
## 1 Introduction
\begin{table}
\begin{tabular}{c c c c} \hline
**ID** & **Name** & **Source** & **Energy Range** \\ \hline BL20U1 BL20U2 & Energy Material Beamline (E-line) & IVU+EPU & 130 eV\(\sim\)18 keV \\ \hline BL11B & Hard X-ray Spectroscopy Beamline & BM & 5–30 keV \\ \hline BL16U1 & Medium-energy Spectroscopy Beamline & U & 2.1–16 keV \\ \hline BL07U & Spatial-resolved and Spin-resolved ARPES and & Twin & 50–2000 eV \\  & Magnetism Beamline (S\({}^{2}\)-line) & EPU & 50–2000 eV \\ \hline BL02U1 & Membrane Protein Crystallography Beamline & IVU & 7–15 keV \\ \hline BL02U1 & Surface Diffraction Beamline & CPMU & 4.8–28 keV \\ \hline BL03 SB & Laue Micro-diffraction Beamline & SB & 7–30 keV \\ \hline BL13U & Hard X-ray Nanoprobe Beamline & IVU & 5–25 keV \\ \hline BL18B & 3D Nano Imaging Beamline & BM & 5–14 keV \\ \hline BL05U\& & & \\ BL06B & Dynamics Beamline (D-line) & IVU+BM &
\begin{tabular}{c} 5–25 keV \\ 10–10,000 cm\({}^{-1}\) \\ \end{tabular} \\ \hline BL10U1 & Time-resolved USAXS Beamline & IVU & 8–15 keV \\ \hline BL16U2 & Fast X-ray Imaging Beamline & CPMU & 8.7–30 keV \\ \hline BL10U2 & Biosafety P2 Protein Crystallography Beamline & IVU & 7–18 keV \\ \hline BL13 SSW & Radioactive Materials Beamline & W & 5–50 keV \\ \hline BL12 SW & Ultra-hard X-ray Applications Beamline & SCW & 30–150 keV \\ \hline BL03 SS (ID) & Laser Electron Gama Source Beamline (SLEGS) & ID & 0.4–20 MeV \\ \hline BL09B & X-ray Test Beamline & BM & 4–30 keV \\ \hline \end{tabular}
\end{table} 
Table 1: Detailed overview of the 16 state-of-the art beamlines of the SSRF Phase-II Beamline Project. \begin{table}
\begin{tabular}{c c c} \hline  & **ID** & **Software Development Environment** \\ \hline  & BL08U1-A, BL13W1 & C Language \\  & BL08U1-B, BL15U1 & EPICS \\  & BL14W1, BL16B1 & Labview \\  & BL14B1 & SPEC \\  & BL17U1 & Blu-Ice/DCS \\ \hline  & BL01B1, BL09U & Niche business software \\ FBP & BL17B, BL18U, BL19U1 & Blu-Ice/DCS \\  & BL19U2 & EPICS \\  & BL02B, BL03U & Niche business software \\ \hline \end{tabular}
\end{table} 
Table 2: The development environment of the endstation data acquisition system at the SSRF Phase-I Project and the FBP beamlines. on the common requirements of the SSRF Phase-II beamlines. With overall consideration and planning, and within a unified software environment and architecture, it can significantly avoid repeated development and reduce the workload for long-term operation, maintenance, and upgrades. At present, the international mainstream data acquisition architectures for synchrotron radiation light sources and other large facilities are Bluesky suite [13], Sardana [14] and Generic Data Acquisition (GDA) [15]. Bluesky suite is a set of tools that can assist beamline scientists to realize complex experimental procedures with little understanding of low-level control or data. It is developed by the American National Synchrotron Light Source-II (NSLS-II). Additionally, NSLS-II has developed and fielded a data acquisition system based on Bluesky Suite at 12 NSLS-II beamlines. Bluesky suite currently only interface with EPICS. Sardana development was started at the ALBA synchrotron, which is a third-generation synchrotron light facility located in Barcelona that is supported today by a larger community, which includes several other laboratories and individuals (ALBA, Deutsches Elektronen Synchrotron (DESY), Swedish national synchrotron laboratory MaxIV, Solaris National Synchrotron Radiation Center, European Synchrotron Radiation Facility (ESRF)). Sardana is based on Tango. The GDA project is an open-source framework for creating customized data acquisition software for science facilities, such as neutron and X-ray sources. The software is Java/Eclipse-based, free and released under the GPLv3. The development team at Diamond light source have developed the GDA for the majority of beamlines across all the scientific techniques at Diamond. SSRF beamline control systems are mainly based on EPICS. In addition, Bluesky suite is designed to interface with EPICS and possess experiment generality.