Hilding Elmqvist
Dassault Systèmes AB, Ideon Science Park, Lund, Sweden
Martin Otter
DLR Institute of System Dynamics and Control, Wessling, Germany
Sven Erik Matsson
Dassault Systèmes AB, Ideon Science Park, Lund, Sweden
Download articlehttp://dx.doi.org/10.3384/ecp1207615Published in: Proceedings of the 9th International MODELICA Conference; September 3-5; 2012; Munich; Germany
Linköping Electronic Conference Proceedings 57:1, p. 15-26
Published: 2012-11-19
ISBN: 978-91-7519-826-2
ISSN: 1650-3686 (print), 1650-3740 (online)
The scope of Modelica 3.3 has been extended from a language primarily intended for physical systems modeling to modeling of complete systems by allowing the modeling of control systems and enabling automatic code generation for embedded systems.
This paper describes the fundamental synchronous language primitives introduced for increased correctness of control systems implementation since many more checks can be done at compile time. The approach is based on associating clocks to the variable types. Special operators are needed when accessing variables of another clock. This enables clock inference and increased correctness of the code since more extensive checking can be done at compile time.