I have an problem with the automatically code generation from a Simulink project. When I try to generate c code, this generate only the code related at subsystem selected but the ert_main.c is not generated. why? how I can avoid this problem? I need ert_main.c because I'm working at a project for the university. Thank you for your support

回答 (1 件)

Jesús Zambrano
Jesús Zambrano 2020 年 2 月 7 日

0 投票

Hi Angelo,
The option "Generate an example main program" in Code Generation of Configuration Parameters should be selected, see screenshot below:
main_program.png

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

回答済み:

2020 年 2 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by