After evaluating several commercial software packages, Alstom chose MathWorks tools for Model-Based Design. Alstom engineers used the tools to design, simulate, and automatically generate code on a number of projects, including a tramway control system and an energy management system for Czech Railways’ Pendolino tilting train.
In the design phase, engineers use Simulink®, Simscape Power Systems™, and Stateflow® to develop their control systems.
"Simulink makes it easy to transfer functions from one part of the design or to change the timing from timed to interrupt-driven, while maintaining efficiency," says Geerligs. "That kind of major design change would be very difficult without Simulink."
The engineers used Simscape Power Systems to model the electrical components of the system, including the power electronic components as well as resistors, capacitors, and inductors.
Using Stateflow, the team modeled the supervisory control and control system states, including start-up, slow-down, and error handling. The communication protocol between the power conversion control and the system’s central fault handling unit was also implemented in Stateflow.
"Superstates in Stateflow were particularly helpful for fault handling. When we had a fault in a substate, we drew a line out of the superstate, and Stateflow ensured that it was always handled correctly," says Geerligs.
The Alstom team used MATLAB® to preprocess measurement data from fiberoptic interfaces and scopes for their simulations. They also used MATLAB to report and verify the simulation results. Geerligs used Control System Toolbox™ with MATLAB to create and analyze Bode diagrams and develop classical control algorithms.
After simulating the system in Simulink and Stateflow, the team used Simulink Coder™ and Embedded Coder® to automatically generate production-ready code. They integrated the code with a number of real-time operating systems, including Microware 0S-9 and Wind River’s OSEKWorks.
Alstom engineers reused their models from project to project. "MathWorks tools helped us define design patterns and share that knowledge in libraries," explains Geerligs. "Fault handling and electrical modeling, for example, were shared between the tramway project and the energy management project."