Generic looping in KSFoundation: a programming abstraction for rapid prototyping of pulse sequences

Enrico Avventi, Henric Rydén, Adam van Niekerk, Ola Norbeck, Sophie Schauman, Stefan T. Skare · Proceedings on CD-ROM - International Society for Magnetic Resonance in Medicine. Scientific Meeting and Exhibition/Proceedings of the International Society for Magnetic Resonance in Medicine, Scientific Meeting and Exhibition · 2025

Motivation: We aim at developing a framework for pulse sequence programming that is suited for rapid prototyping without compromising on the clinical usefulness of the resulting pulse sequences. Goal(s): The goal is to reduce the effort needed for developing a novel pulse sequence from scratch. Approach: In this study we introduce abstractions for implementing sequence independent looping that are denoted as generic looping. Results: These abstractions have helped greatly simplify our existing pulse sequences. It was particularly beneficial for Neuromix, a very complex sequence composed by different modules (FSE and EPI) and sampling modes (2D, 3D and PROPELLER) Impact: The abstractions presented in this study has been incorporated in the latest version of KSFoundation that was recently released and is available on request [3].

Read the paper · More papers on PaperTik