If I set up the Hardware board in Hardware Implementation, can't I turn ON the "Generate and example main program" setting in Templates?
4 views (last 30 days)
Show older comments
Specific hardware was set in Configuration Parameter --> Hardware Implementation --> Hardware board.
Code Generation --> System target file was set to ert.tlc.
If you turn on "Generate an example main program" in Code Generation --> Templates --> Custom Templates,
<The 'GenerateSampleERTMain' model parameter is set to 'on', but your hardware board requires it to be set to 'off' . Use 'set_param' command to set the 'GenerateSampleERTMain' model parameter to 'off.>" Error occurs.
If I set up the Hardware board in Hardware Implementation, can't I turn ON the "Generate and example main program" setting in Templates?
0 Comments
Answers (1)
Poorna
on 3 May 2024
Hi,
There are certain restrictions that need to be honoured when trying to generate C code to deploy on specific targets. When a model uses certain service interfaces then the model configuration is restricted so that "GenerateSampleERTMain' is set to false. This mostly depends on the hardware and the modeling aspects.
You can find more information below on the list of restrictions and constraints that are imposed when the generated code uses service interfaces:
Hope this Helps!
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!