Main Content

Generate Code from Rate-Based Model

Generate code from the rate-based model, not from the model test harness. For scheduled subsystems with different discrete rates, multi-tasking is required and the resulting code has separate entry points.

  1. Generate code for the component model. Display the C Code tab by selecting the Apps tab, and then in the Apps section, select Embedded Coder . On the C Code tab, select Generate Code .

  2. Open the code generation report. On the C Code tab, select Open Latest Report.