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

3 Ansichten (letzte 30 Tage)
Sohil Shrestha
Sohil Shrestha am 12 Mai 2021
Beantwortet: Jonas am 13 Okt. 2021
Is there a heuristic or certain block parameter configuration that suggests if a Simulink model is used or configured
for code generation?

Akzeptierte Antwort

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

Weitere Antworten (1)

Pranav Verma
Pranav Verma am 20 Mai 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

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by