A novel algorithm for flattening virtual subsystems in Simulink models

Recently embedded systems are often modeled using Simulink® to simulate their behavior. In order to perform the simulation, the modeling tool has to process the model. An important processing step is to determine the execution order of the elements in a model. This execution order is based on a sorted list of all semantically relevant model elements. Therefore, before simulation, Simulink® removes all model elements that only have a syntactic implication. In Simulink, the virtual subsystems are composite elements with no semantic bearing. Thus, Simulink performs a flattening model transformation that eliminates virtual subsystems. The work presented in this paper provides a novel algorithm for flattening composite elements in hierarchical models. Moreover, an optimized algorithm is also presented for Simulink models. With the implementation of these algorithms the level of abstraction of the model transformation can be raised. In this manner, a reusable, platform independent solution can be achieved for flattening Simulink subsystems.

[1]  Murat Dogruel,et al.  Fuzzy plus integral control of the effluent turbidity in direct filtration , 2004, IEEE Transactions on Control Systems Technology.

[2]  Pieter J. Mosterman,et al.  Computer automated multi-paradigm modeling , 2002 .

[3]  Pieter J. Mosterman,et al.  Computer-automated multiparadigm modeling in control systems technology , 2004, IEEE Transactions on Control Systems Technology.

[4]  Martin Fowler,et al.  Domain-Specific Languages , 2010, The Addison-Wesley signature series.

[5]  M. Wimmer,et al.  Plug & play model transformations: a DSL for resolving structural metamodel heterogeneities , 2010, DSM '10.

[6]  Juha-Pekka Tolvanen,et al.  Domain-Specific Modeling: Enabling Full Code Generation , 2008 .

[7]  Pieter J. Mosterman,et al.  Computer automated multi-paradigm modeling in control system design , 2000, CACSD. Conference Proceedings. IEEE International Symposium on Computer-Aided Control System Design (Cat. No.00TH8537).