Component-Based Modeling Guidelines - MATLAB & Simulink (original) (raw)

Main Content

Component-based modeling helps organizations develop Simulink® models that consist of many functional pieces. Each Simulink component you create is a piece of your design that has an interface and facilitates assembly of a system or a larger component. Useful model components have a well-defined scope, perform functionality defined by requirements, and form part of a larger system.

Model components can enable:

Should You Create Model Components?

Considering the work required to define and manage components, you should use component-based modeling only when the benefits outweigh the cost.

Separating an existing Simulink model into components is analogous to taking a large piece of code (C, Java®, or MATLAB® code) and breaking it down into multiple functions. The conversion can require significant effort and extensive modifications if the design is not modular from the beginning.

Considering model scalability and potential requirements upfront makes separating a Simulink model into components easier. Identifying components upfront can help you avoid these difficulties:

Components are also useful when a design becomes too complicated for one person to manage all of the details. For example, a complicated model can be a model that has:

Projects and source control can help you manage components. For more information, see What Are MATLAB Projects in Simulink? and Configuration Management.

Define Model Components