MATLAB Answers

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

7 views (last 30 days)
Sohil Shrestha
Sohil Shrestha on 12 May 2021
Answered: Jonas on 13 Oct 2021 at 14:53
Is there a heuristic or certain block parameter configuration that suggests if a Simulink model is used or configured
for code generation?

Answers (2)

Pranav Verma
Pranav Verma on 20 May 2021
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

Jonas
Jonas on 13 Oct 2021 at 14:53
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