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.

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

  author       = {T. Snijder and T. Juerges and J.J.D. Mol},
  title        = {{Tango Controls Device Attribute extension in Python3}},
  booktitle    = {Proc. ICALEPCS'21},
  language     = {english},
  intype       = {presented at the},
  series       = {International Conference on Accelerator and Large Experimental Physics Control Systems},
  number       = {18},
  venue        = {Shanghai, China},
  publisher    = {JACoW Publishing, Geneva, Switzerland},
  month        = {03},
  year         = {2022},
  note         = {presented at ICALEPCS'21 in Shanghai, China, unpublished},
  abstract     = {{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.}},