How can I change the functions and variables names of C code generated by the Embedded Coder?
5 views (last 30 days)
Show older comments
João Monteiro
on 11 Oct 2015
Answered: Walter Roberson
on 11 Oct 2015
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.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!