Author: Beniz, D.B.
Paper Title Page
THAPL04 Python for User Interfaces at Sirius 1091
 
  • G.S. Fedel, D.B. Beniz, L.P. Do Carmo, J.R. Piton
    LNLS, Campinas, Brazil
 
  Sirius is the new Brazilian Synchrotron and will be finished in 2018. Based on experiences at LNLS UVX light source along with researches and implementations, we present our new approach to develop user interfaces for beamlines control. On this process, the main tools explored are Python, Qt and some Python libraries: PyQt, PyDM and Py4syn. Powerful resources of these modules and Python straightforward coding guarantee flexible user interfaces: it is possible to combine graphical applications with intelligent control procedures. At UVX, EPICS and Python are software tools already used respectively for distributed control system and control routines. These routines often use Py4Syn, a library which provides high-level abstraction for devices manipulation. All these features will continue at Sirius. More recently PyQt turned out to be a compatible and intuitive tool to build GUI applications, binding Qt to Python. Also PyDM offers a practical framework to expose EPICS variables to PyQt. The result is a set of graphical and control libraries to support new user interfaces for Sirius beamlines.  
video icon Talk as video stream: https://youtu.be/wZjOwdMuYyM  
slides icon Slides THAPL04 [1.391 MB]  
DOI • reference for this paper ※ https://doi.org/10.18429/JACoW-ICALEPCS2017-THAPL04  
Export • reference for this paper using ※ BibTeX, ※ LaTeX, ※ Text/Word, ※ RIS, ※ EndNote (xml)  
 
THPHA201 Customization of MXCuBE 2 (Qt4) Using EPICS for a Brazilian Synchrotron Beamline 1923
 
  • D.B. Beniz
    LNLS, Campinas, Brazil
 
  After studying some alternatives for macromolecular crystallography beamlines experiment control and had considered the effort to create an in-house made solution, LNLS decided to adopt MXCuBE*. Such decision was made considering main technologies used to develop it, based on Python, which is being largely used in our laboratory, its basic support to EPICS (Experimental Physics and Industrial Control System), the control system adopted for the LNLS beamlines, and because of its stability. Then, existing MXCuBE implementation has been adapted to meet LNLS requirements, considering that previously it was mainly ready to control systems other than EPICS. Using basic MXCuBE engines, new classes were created on devices abstraction layer, which communicates to EPICS IOCs (Input/Output Controllers), like AreaDetectors, MotorRecords among others. Py4Syn** was employed at this abstraction layer, as well. New GUI components were developed and some enhancements were implemented. Now, MXCuBE has been used on LNLS MX2 beamline since the end of 2016 with positive feedback from researchers. The adoption of MXCube proved to be right, given its flexibility, performance and the obtained results.
* Gabadinho, J. et al., 2010, "MxCuBE: (…)". J. of S. Radiation, V. 17, pp. 700-707;
** Slepicka, H. et al., 2015. "Py4Syn: (…)". J. of S. Radiation, V. 22, pp. 1182-1189.
 
poster icon Poster THPHA201 [2.144 MB]  
DOI • reference for this paper ※ https://doi.org/10.18429/JACoW-ICALEPCS2017-THPHA201  
Export • reference for this paper using ※ BibTeX, ※ LaTeX, ※ Text/Word, ※ RIS, ※ EndNote (xml)