How to generate Hierarchical C codes using Embedded coder?

4 visualizaciones (últimos 30 días)
Disha Srivastava
Disha Srivastava el 10 de Jul. de 2017
Respondida: Don Zheng el 18 de Jul. de 2017
I have created a Simulink model that has various simulation blocks. I want to create C codes for each block separately using Embedded Coder compatible with my Renesas controller to test them individually. But once I have unit tested them, I want to integrate them into a single model. The problem with Embedded coder is, it is treating each block as a separate Simulink model while creating the C code. As a result, I am facing duplication problems.

Respuestas (1)

Don Zheng
Don Zheng el 18 de Jul. de 2017
Make each block a model reference and in the generated code, each model reference block should have their own .h/c files.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by