Model Architecture and Design
Model componentization, hierarchy, and execution order considerations for code
generation
When developing Simulink® models for code generation, consider:
Scheduling requirements and relevant modeling techniques
Products and blocks that support code generation
Code generation treatment of Simulink modeling semantics
Decide whether to represent application components as subsystems, reference models, or Stateflow® charts. Consider whether you want to generate reusable code.
Configure test or production hardware or control the location of generated code files.
As you evolve your model, use the Model Advisor to check whether the model is ready for code generation.
Categories
- Scheduling
Time- and event-based scheduling requirements
- Messages
Generate C/C++ code to use messages for communication
- Block Usage
Configure blocks for code generation
- Component-Based Modeling
Modularization, reentrancy, and reuse
- Model Configuration
Configure models for simulation and code generation
- Block Authoring and Customization
Define code generation behavior for user-defined blocks