Iterative Approach for Gradual Transition to Model-Based Design in Legacy Motor Controllers
Julius Woo, Eaton
Gustavo Olenscki, Eaton
Li Dang, MathWorks
Discover an effective and iterative approach for converting Eaton’s legacy handwritten motor controller software to Model-Based Design using Simulink®. Originally developed a decade ago, the software faced significant challenges, including poor readability, maintainability issues, and extensive use of global variables, making direct reuse difficult. The conversion strategy focuses on systematically transforming software architecture, refining components, and adapting workflows to align with Model-Based Design principles.
A key feature of this process is its flexibility, allowing for gradual conversion and the option to retain portions of handwritten code where necessary. Currently in its fourth iteration, the process benefits from human insights to identify areas for improvement, supported by a robust workflow that facilitates continuous enhancement of both conversion efficiency and code quality. Key elements include modularizing code structures, improving documentation, and establishing a clear workflow for integrating Model-Based Design practices.
In this presentation, get insights into the methodologies and strategies employed. See how this adaptable process can be applied to similar transitions in other organizations, and learn a structured approach to overcoming common challenges in legacy code modernization.
Published: 14 May 2025