How can I change the functions and variables names of C code generated by the Embedded Coder?

5 views (last 30 days)
I have a simple Simulink model that I am building with the Embedded Coder ert_shrlib.tlc target. I am aware that I can change the model initialize and step functions names in "Configuration Parameters"->"Code Generation"->"Interface"->"Configure Model Functions". Nonetheless, I would like to use a fixed prefix, e.g. foo, instead of the one that depends on the model name.
To be more specific, if my model is named: simul.slx, the generated terminate function and the real-time model object are named: simul_terminate and simul_M. I would like them to be named foo_terminate and foo_M, despite the model name. This should still be valid for any other model dependent name.

Accepted Answer

Walter Roberson
Walter Roberson on 11 Oct 2015

More Answers (0)

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!