Towards a Standard-Conform, Platform-Generic and Feature-Rich Modelica Device Drivers Library

Bernhard Thiele
PELAB, Linköping University, Sweden

Thomas Beutlich
ESI ITI GmbH, Germany

Volker Waurich
Chair of Construction Machinery, TU Dresden, Germany

Martin Sjölund
PELAB, Linköping University, Sweden

Tobias Bellmann
Institute of System Dynamics and Control, DLR, Germany

Ladda ner artikelhttp://dx.doi.org/10.3384/ecp17132713

Ingår i: Proceedings of the 12th International Modelica Conference, Prague, Czech Republic, May 15-17, 2017

Linköping Electronic Conference Proceedings 132:78, s. 713-723

Visa mer +

Publicerad: 2017-07-04

ISBN: 978-91-7685-575-1

ISSN: 1650-3686 (tryckt), 1650-3740 (online)


There are many cases where simulation applications need to interact with their environment. Typical examples are Human-in-the-Loop (HITL) simulators (including flight, driving, and marine training simulators), Hardware-in-the-Loop (HIL) simulators, but also offline process simulators which cannot operate in a completely self-contained manner and therefore need to be coupled to external applications. Embedded control applications are another related area which requires that applications interact with their environment. The Modelica_DeviceDrivers library, which had its first release as open-source library in 2012, tries to cater for such use cases. This paper describes the library for the first time and reports about the numerous challenges that the project experienced to meet its goal of supporting several platforms and tools within a standard-conform, platform-generic, feature-rich, and easy-to-use Modelica library.


Human-in-the-loop, hardware-in-the-loop, real-time simulation, embedded control application, Modelica external C


Inderpreet Arora, Kannan M. Moudgalya, and Sachitanand Malewar. A low cost, open source, single board heater system. In 4th IEEE International Conference on E-Learning in Industrial Electronics (ICELIE), November 2010. doi: https://doi.org/10.1109/ICELIE.2010.5669868.

Tobias Bellmann. Interactive Simulations and advanced Visualization with Modelica. In Francesco Casella, editor, 7th Int. Modelica Conference, Como, Italy, September 2009. doi: https://doi.org/10.3384/ecp09430056.

Tobias Bellmann, Johann Heindl, Matthias Hellerer, Richard Kuchar, Karan Sharma, and Gerd Hirzinger. The DLR Robot Motion Simulator Part I: Design and Setup. In 2011 IEEE International Conference on Robotics and Automation (ICRA), pages 4694–4701. IEEE, May 2011. doi: https://doi.org/10.1109/ICRA.2011.5979913.

Torsten Blochwitz and Thomas Beutlich. Real-Time Simulation of Modelica-based Models. In Francesco Casella, editor, 7th Int. Modelica Conference, Como, Italy, September 2009. doi: https://doi.org/10.3384/ecp09430119.

Matthias Hellerer, Tobias Bellmann, and Florian Schlegel. The DLR Visualization Library - Recent development and applications. In Hubertus Tummescheit and Karl-Erik Årzén, editors, 10th Int. Modelica Conference, Lund, Sweden, March 2014. doi: https://doi.org/10.3384/ecp14096899.

Albert S. Huang, Edwin Olson, and David C. Moore. LCM: Lightweight Communications and Marshalling. In 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2010), pages 4057–4062, October 2010. doi: https://doi.org/10.1109/IROS.2010.5649358.

Modelica Association. Modelica—A Unified Object-Oriented Language for Physical Systems Modeling v3.2. Standard Specification, March 2010. available at http://www.modelica.org/.

Modelica Association. Modelica—A Unified Object-Oriented Language for Systems Modeling v3.3 Revision 1. Standard Specification, July 2014. Available at http://www.modelica.org/.

Martin Otter, Bernhard Thiele, and Hilding Elmqvist. A Library for Synchronous Control Systems in Modelica. In Martin Otter and Dirk Zimmer, editors, 9th Int. Modelica Conference, Munich, Germany, September 2012. doi: https://doi.org/10.3384/ecp1207627.

Niklas Worschech and Lars Mikelsons. A Toolchain for Real-Time Simulation using the OpenModelica Compiler. In Martin Otter and Dirk Zimmer, editors, 9th Int. Modelica Conference, Munich, Germany, September 2012. doi: https://doi.org/10.3384/ecp12076839.

Citeringar i Crossref