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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Poorna
el 3 de Mayo de 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!
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!