8–12 Jun 2026
ALBA Synchrotron
Europe/Madrid timezone

From Device Manuals to Runnable PyTango Device Servers: AI-Assisted Tango Device Server Generation

9 Jun 2026, 17:45
15m
Maxwell Auditorium (ALBA Synchrotron)

Maxwell Auditorium

ALBA Synchrotron

Carrer de la Llum 2-26 08290 Cerdanyola del Vallès, Barcelona, Spain
Talk Community Device Classes, Tools, and Applications Community Device Classes, Tools, and Applications

Speaker

Lukasz Zytniak (S2INNOVATION)

Description

Developing Tango Device Servers still requires a significant amount of repetitive engineering work: defining attributes, commands and properties is relatively structured, but implementing device-specific protocol logic from manuals, datasheets and vendor documentation remains time-consuming and error-prone. This contribution presents S2Innovation’s AI-assisted Tango Device Server generator, a web-based tool that combines structured device modelling with retrieval-augmented generation over device documentation.

The application allows users to define a device interface through a graphical form, upload device manuals or datasheets, and generate Python/PyTango server code tailored to the selected attributes, commands and properties. The backend uses FastAPI and LangChain to connect with multiple LLM providers, while the retrieval layer extracts relevant documentation fragments to improve code accuracy. Initial tests with devices such as power supplies and teslameters showed that generated code often requires only limited manual corrections before becoming functional.

The goal is not to replace Tango developers, but to reduce boilerplate, shorten integration cycles and make device-server development more accessible to beamline engineers, controls engineers and scientific software teams.

Tags AI, device server, web

Primary authors

Mr Hubert Nowak (S2INNOVATION) Mr Krzysztof Klimczyk (S2INNOVATION) Wojciech Kitka (S2Innovation)

Co-author

Lukasz Zytniak (S2INNOVATION)

Presentation materials