MATLAB Answers

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?

답변(2개)

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
  댓글 수: 1
Sohil Shrestha
Sohil Shrestha 2021년 10월 13일
Is there a way to find out programmatically ?

댓글을 달려면 로그인하십시오.


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'))

Community Treasure Hunt

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

Start Hunting!

Translated by