Is there a heuristic or certain block parameter configuration that suggests if a Simulink model is used or configured
for code generation?

 採用された回答

Jonas
Jonas 2021 年 10 月 13 日

0 投票

System Target File will be 'ert.tlc' if the model is configured for code generation.
strcmp('ert.tlc',get_param('mymodel','SystemTargetFile'))

その他の回答 (1 件)

Pranav Verma
Pranav Verma 2021 年 5 月 20 日

0 投票

Hi Sohil,
To check if the model will generate a code, you can go to "Generate Code from the Model" section in the documentation.
Thanks

1 件のコメント

Sohil Shrestha
Sohil Shrestha 2021 年 10 月 13 日
Is there a way to find out programmatically ?

サインインしてコメントする。

カテゴリ

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

質問済み:

2021 年 5 月 12 日

回答済み:

2021 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by