It also enables a mixture of engine motions, like a mésh of two michael otors, and mathematic calculations structured on the measure of one or more detec- tors.In this write-up its inspiration and some implementation information will end up being presented.
Discover the planets study 17 million people 135 million periodicals 700k research projects Sign up for for free Statistics - uploaded by Douglas Bezerra Beniz Author content All articles in this area was uploaded by Douglas Bezerra Beniz Content material may be subject matter to copyright. Advertisement Content material uploaded by DougIas Bezerra Beniz Author articles All content in this area was published by Douglas Bézerra Beniz on November 03, 2017 Content may be subject matter to copyright. At LNLS (B razil Synchrotron Light Lab) we suc- cessfully developed Python scripts to manage beamlines operations, including a case of GUI ( Graphical User User interface ) creation using Tkinter 1 for one of LNLS beamlines, DXAS ( Dispersive A - beam Abso rption Spec- troscopy ) 2. In this write-up its meters otivation and som elizabeth im- plementation details will end up being presented. MOTIV A TION The decision to make use of Python to create a GUI was based on the previous experience with such programming lan- guage in LNLS. There is usually a library package, called Py4Syn 3, developed in LNLS with Python edition 3.4 and in use to manage beamline gadgets, like motors and detec- tórs, and to run a sequen ce of actions to carry out spe- cific experiments by synchronization of a set of like devices and storing of collect ed information into data files formatted in columns to help their a nalysis. Python And Tkinter Programming Trial Control ProgramControllers of like devices have got software program abstractions, IOCs ( InputOutput Controllers ), developed in EPICS ( ExperimentaI Physics and lndustrial Control Program ) 4 which sources, PVs ( Procedure Sixth is v ariables ), are usually available in the laboratory net- work via California ( Station Access ) 5 process. Python provides deals to control such resources, with PyEPICS 6, to carry out mathematical calc ulations and data matrix ma- nipulation, with NumP y 7, and to displa y information as images, with Matplotlib 8, th is definitely way it caused the growth of Py4Syn. Once we experienced the device to sophisticated scripts to orchéstrate synchrotron beamline experiments, Py4Syn, the ne w problem was to provide a GUI that helped users to notify scripts guidelines, handle and monitor their setup. LNLS used CS (Handle Program) Facility 9 as the device to keep track of and run EPICS IOCs. It will be a great option to keep track of and communicate with EPICS PVs, nevertheless, it is n ot recommended by their developers to control complicated scripts in Python. We attempted to make use of CS St udio testosterone levels o handle Py4Syn scripts but the overall performance was bad. Python And Tkinter Programming Code Illustrations InAfter that, we decided to develop a GUl i n Python, ón ce thé scripts were written making use of that language, and Tkinter came about as a great begin as it will be the standard GUI deal of Python and we found a large amount of tutorials and code illustrations in the Web. The very first knowledge in T NLS with Tkinter to create graphical interfaces for Python scripts had been with DXAS beamline, which had been becoming re- formed between 2014 and 2015. ARCHITECTURE OVERVIEW In Amount 1 the overview of current software architec- ture option for control system of DXAS will be presented. Electronic (T echnical) Devices At lo wer level of company ntrol system are usually the usual tech- nical devices existing in synchrotron beamlines. Some products existing in DXAS beamIine of LNLS are usually: x Galil DMC-4183: engine controller x Parker OEM750: electric motor controller times Heidenhain MT 2501: optical encoder times Keithley 6485: picoammeter times Kepco BOP: power supplier back button OMRON Age5CK: electronic control of furnace x LakeShore 331: temp chemical ontroller of cryogenic cooling system back button Stanford SR570: reduced noise present pream plifier x Princeton Devices PyLoN: CCD camcorder Reasonable (Abstraction) Level Over the d evices controllers is the 1st abstraction of them, construct in EPICS, with correspondent IOCs for éach one of thé products. Those products of the exact same manufac- turer and design share the sa me IOC system, but operate in individual instances. Fundamentally, a place of directions to get information or to send out a control to gadgets is arranged in those I0Cs as PVs, whére each PV is usually a record, or piece of data, with some attributes to structure, configure or simp- ly return related information. Process of PCaP Air conditioning2016, Campinas, Brazilian - Pre-Release Overview 28-April-2016 14:30 WEPOPRPO25 User User interface and T ools ISBN 978-3-95450-189-2 1 Copyright 2016 CC-BY -3.0 and by the respective writers Pre-Release Overview 28-April-2016 14:30. The second abstraction level of those PVs is produced by Py4Syn, which offers a set of Python items repre senting éach one of devices managed by EPICS IOC s. Py4Syn also apply a set of utility tools to perform scan of electric motor positions while a counting detector is accumulating info of light beam intensity carried across a sám- ple, or tó vary a heater heat range while a G CD is definitely ac- quiring spectra images to an alyse structure intake of a - beam, for instance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |