주요 콘텐츠

Create Software Component Models in Simulink

R2026b

When designing a software component, it is useful to distinguish between the algorithms implemented in the component and the interaction of the component with its target software environment. In Simulink®, you can configure a model as a software component to enable an explicit component boundary and prepare the model for defining component interfaces and run-time behavior.

To configure a Simulink model as a software component, you need the Software Component Designer for Simulink support package. For installation instructions, see Install Software Component Designer for Simulink Support Package.

Configure Simulink Model As Software Component

To create a software component, open the Software Component Designer app from an existing Simulink model or a blank model.

  1. Create a blank Simulink model or open an existing model.

  2. In the Simulink toolstrip, select the Apps tab.

  3. In the Code Generation section, click Software Component Designer Software Component Designer application icon .

When the Software Component Designer app opens, Simulink displays a visual boundary around the model. This boundary indicates that the model is now configured as a software component.

The Simulink editor shows the Software Component tab of the toolstrip selected. The modeling canvas shows a blank Simulink model with a visual boundary and a banner at the top of the boundary with the model name.

Next Steps

After you configure a model as a software component, use the Software Component Designer app to define how the component interacts with other software components at run time:

  1. Define data and service interfaces on component ports. See Define Data and Service Interfaces Between Components.

  2. Configure communication and execution behavior using quality of service (QoS) properties. See Configure Communication and Execution Behavior of Software Components.

  3. Validate component behavior through simulation. See Simulate Software Architectures to Validate Run-time Behavior (System Composer).

See Also

Topics