Browse Publications Technical Papers 2020-01-1290
2020-04-14

A Comparison of Componentization Constructs for Supporting Modularity in Simulink 2020-01-1290

The Model-Based Development (MBD) paradigm is widely used for embedded controls development, with the MathWorks Simulink modelling environment being extensively used in the automotive industry. As production-scale Simulink models are typically large and complex, there exists a need to decompose them properly in order to facilitate their maintainability, understandability, and evolution. MathWorks recommends the use of three constructs for model “componentization” or decomposition: the Subsystem, Library, and Model Reference. However, a recently added construct introduced in Simulink R2014b, the Simulink Function, can also be used for this purpose, while also supporting information hiding due to the construct’s ability to be scoped and encapsulate data. This paper provides an in-depth comparison of these Simulink constructs to fully understand the differences in their reusability, sharing of program state, encapsulation, and code generation, with the goal of facilitating model evolution. An automotive powertrain example is provided to highlight the differences between approaches. Conventions for structuring models are also presented.

SAE MOBILUS

Subscribers can view annotate, and download all of SAE's content. Learn More »

Access SAE MOBILUS »

Members save up to 16% off list price.
Login to see discount.
Special Offer: Download multiple Technical Papers each year? TechSelect is a cost-effective subscription option to select and download 12-100 full-text Technical Papers per year. Find more information here.
We also recommend:
TECHNICAL PAPER

Comparing Stress Gradient and Other Concepts for Fatigue Analysis of Notched Components

2022-01-0252

View Details

TECHNICAL PAPER

Loop Heat Pipe Testing and Analytical Model Verification at the U.S. Naval Research Laboratory

2004-01-2552

View Details

TECHNICAL PAPER

Streamlined Tails - The Effects of Truncation on Aerodynamic Drag

2020-01-0673

View Details

X