My main folder is not generated during code generation of simulink model

I'm trying to generate c code from my simulink model for SIL. I was able to generate code by changing "Model configuration parameter" and "embedded coder"
But I'm not getting the my main folder which will have ert_main.c with a for loop.
i dont have any error or warning. Am i missing some toolbox or do i need to specify anything in Model configuration parameter to get that my main folder
Steps i followed:
  1. Solver => fixed step
  2. Code generation => ert.tlc
  3. Report => all the check box is selected
  4. Embedded coder => Build

Respuestas (1)

Jonas
Jonas el 9 de Abr. de 2021
Did you check 'Generate an example main program' under Code Generation > Templates?

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 9 de Abr. de 2021

Comentada:

el 9 de Abr. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by