JACoW logo

Journals of Accelerator Conferences Website (JACoW)

JACoW is a publisher in Geneva, Switzerland that publishes the proceedings of accelerator conferences held around the world by an international collaboration of editors.

RIS citation export for MOPV046: Tango Controls Device Attribute extension in Python3

AU  - Snijder, T.
AU  - Juerges, T.
AU  - Mol, J.J.D.
ED  - Furukawa, Kazuro
ED  - Yan, Yingbing
ED  - Leng, Yongbin
ED  - Chen, Zhichu
ED  - Schaa, Volker R.W.
TI  - Tango Controls Device Attribute extension in Python3
J2  - Proc. of ICALEPCS2021, Shanghai, China, 14-22 October 2021
CY  - Shanghai, China
T2  - International Conference on Accelerator and Large Experimental Physics Control Systems
T3  - 18
LA  - english
AB  - The Tango Controls Device Attributes represent a container for read-only or read-write data types. However the Attribute read/write functions need to be individually implemented for accessing structured data in hardware devices. This exposes a pattern of replicated code in the read and write functions. Maintaining this code becomes time consuming to maintain when a Device exposes tens or more Attributes. The solution we propose is to extend Tango Control Attributes. For that we combine a hardware access class (accessor) that reads and writes the structured data in hardware together with a small addition to the original Attribute declaration. The extended Attribute constructor provides information that describes how the accessor can locate a value in the hardware. This information is then used to provide the extended Attribute with a parameterised read or write function. The benefits of our solution are that various methods of hardware access can be efficiently and easily implemented and that new extended Attributes can be added with a single line of code. We have successfully used the extended Attributes with OPC-UA, SNMP, and INI-files in ASTRON’s LOFAR2.0 Station Control program.
PB  - JACoW Publishing
CP  - Geneva, Switzerland
ER  -