How to find if the Simulink model is used for code generation

조회 수: 1 (최근 30일)
Sohil Shrestha
Sohil Shrestha 2021년 5월 12일
답변: Jonas 2021년 10월 13일
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일
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일
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

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by