HASMI: A configurable EPICS-based framework for automated optimization of undulator-monochromator coordination

THAG004
25 Sept 2025, 09:30
15m
Grand Ballroom (Palmer House Hilton Chicago)

Grand Ballroom

Palmer House Hilton Chicago

17 East Monroe Street Chicago, IL 60603, United States of America
Contributed Oral Presentation MC09: Experiment Control and Data Acquisition THAG MC09 Experimental Control and Data Acquisition

Speaker

Andreas Balzer (Helmholtz-Zentrum Berlin für Materialien und Energie)

Description

We present HASMI (Harmonic Analyzer State Machine Interface), a highly configurable Python framework designed to automate data acquisition and analytical tasks for optimizing coordinated undulator and monochromator movements at synchrotron beamlines. Built upon EPICS, HASMI features a comprehensive scan library and a command-line interface for managing multi-actuator scans. The framework offers extensive customization through a user-configurable database for defining scan types, actual scan parameters, and user preferences. Integrated analytical tools enable precise identification of undulator harmonic positions using advanced techniques such as convolution and customized cross-correlation. Beamline operations are automated and parameterized through a generalized state machine, which provides both an intuitive command-line interface and a dedicated EPICS interface. The state machine operates efficiently as a continuous background service alongside the monochromator IOC. By integrating multiple alignment scans, visualization, and automated data analysis into a streamlined 'one-button' procedure, HASMI significantly enhances the speed, performance, and reliability of beamline operations for users of the four hard X-ray CPMU17-DCM branches at EMIL.

Author

Andreas Balzer (Helmholtz-Zentrum Berlin für Materialien und Energie)

Co-authors

Anna Efimenko (Helmholtz-Zentrum Berlin für Materialien und Energie) Dr Karsten Holldack (Helmholtz-Zentrum Berlin für Materialien und Energie) Parvathi Sreelatha Devi (Helmholtz-Zentrum Berlin für Materialien und Energie)

Presentation materials

There are no materials yet.