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

1 次查看(过去 30 天)
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