Documentation

Component-Based Modeling

Modularization, reentrancy, reuse, variants

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, 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
    Generate reusable function code, partition a model
  • Model Protection
    Create a protected model for simulation and code generation to share with third-party.
  • Variant Systems
    Generate code for dimension, subsystem, and model variants, and for models containing Variant Sink and Variant Source blocks.
Was this topic helpful?