Documentation

Component-Based Modeling

Modularization, reentrancy, and reuse

The code generator supportsconditionally executednonvirtual subsystems andatomicnonvirtual and virtual subsystem. Often, developers choose to convert subsystems to referenced models to promote modularization and reuse. When you generate reusable code, models with model referencing can potentially require special treatment. For example, all models that they reference must be configured to use identical hardware settings.

  • Subsystems
    Generate and reuse code for subsystems
  • Referenced Models
    Generate and reuse code for referenced models
  • Stateflow Charts
    Generate and reuse code for Stateflow®charts
  • Code Reuse
    Design models from which code generator produces reusable function code
  • Model Protection
    Create a protected model for simulation and code generation to share with a third-party