Modelica as a design tool for hardware-in-the-loop simulation

This paper focuses on the automatic generation of microcontroller code for hardware-in-the-loop simulation using Modelica models. In this work a test is presented and commented in which Modelica is used to specify a control system, the inline integration code is obtained from the Modelica model and executed part on a PC, and part on a microcontroller board. The presented application, albeit created basically for educational purposes, covers quite dierent scenarii, therefore evidencing the usefulness of Modelica in the addressed context, and providing as a consequence some future research directions. The contribution aspect of this work is twofold: on one side the entire cross-compilator software chain is built within the same framework; on the other hand, all the involved software tools are opensource (mainly GPL) licensed, making the application extremely modular and extensible. Furthermore this work will be included in the next release of the open source Modelica environment SimForge [3], thus enriching its Modelica back-ends support.

[1]  Christoph Lossen,et al.  A COMPUTER ALGEBRA SYSTEM , 2003 .

[2]  Matti Linjama,et al.  Hardware-in-the-loop environment for servo system controller design, tuning and testing , 2000, Microprocess. Microsystems.

[3]  Rolf Ernst Codesign of embedded systems: status and trends , 2001 .

[4]  Keum-Shik Hong,et al.  Modified Skyhook Control of Semi-Active Suspensions: A New Model, Gain Scheduling, and Hardware-in-the-Loop Tuning , 2002 .

[5]  H. Hanselmann Hardware-in-the-loop simulation testing and its integration into a CACSD toolset , 1996, Proceedings of Joint Conference on Control Applications Intelligent Control and Computer Aided Control System Design.

[6]  Alan Ptak,et al.  Real-time spacecraft simulation and hardware-in-the-loop testing , 1998, Proceedings. Fourth IEEE Real-Time Technology and Applications Symposium (Cat. No.98TB100245).

[7]  Damrongrit Piyabongkarn,et al.  Development of a real-time digital control system with a hardware-in-the-loop magnetic levitation device for reinforcement of controls education , 2003, IEEE Trans. Educ..

[8]  Rolf Ernst,et al.  Codesign of Embedded Systems: Status and Trends , 1998, IEEE Des. Test Comput..

[9]  Seung-Bok Choi,et al.  A Sliding Mode Control of a Full-Car Electrorheological Suspension System Via Hardware in-the-Loop Simulation , 2000 .

[10]  Rolf Isermann,et al.  Hardware-in-the-loop simulation for the design and testing of engine-control systems , 1998 .

[11]  G. Stoeppler,et al.  Hardware-in-the-loop simulation of machine tools and manufacturing systems , 2005 .