Main Content

cgsl_0401: Modeling styles for component deployment

ID: Titlecgsl_0401: Modeling styles for component deployment
Description

A model intended for component deployment with a service interface shall be designed by using one of the following modeling styles:

A

Export-function modeling

This modeling style supports single and multiple rates.

B

Rate-based modeling

This modeling style supports only a single rate.

Notes

For export-function models, the code generator produces initialize and terminate entry-point functions and an entry-point function for each callable function represented in the model.

For rate-based models, the code generator produces initialize and terminate entry-point functions and an entry-point function for the rate of the model.

RationaleSupport generation of callable entry-point functions in a component modeling architecture.
Model Advisor CheckVerify this guideline by using Model Advisor check Check modeling style for component deployment (Embedded Coder)
Examples

Export-Function Modeling Style

Example that shows the export-function modeling style

Rate-Based Modeling Style

Example that shows the rate-based modeling style

Version History

expand all

Introduced in R2022b