Main Content

Modeling Guidelines for Generated Code

Use modeling guidelines when you develop models and generate code for embedded systems using Model-Based Design with MathWorks® products. The guidelines provide model setting, block usage, and parameter considerations that impact code generation.

Code Generation Modeling Guidelines

You can use code generation guidelines when developing models and generating code for embedded systems. The guidelines provide guidance on modeling patterns, block usage, and configuration parameter settings that impact code generation and component model deployment.

Guidelines for blocks include:

Guidelines for modeling patterns include:

Guidelines for configuration parameters include:

Guidelines for component deployment using a service interface configuration:

(since R2022b)

For information about verifying the readiness of your model for code generation, see Check Model and Configuration for Code Generation (Embedded Coder).

See Also

| (Embedded Coder) | (Embedded Coder)