How do I make the generated model data structure "RT_MODEL" have a name unique to the model/subsystem name in MATLAB R2025b?
Show older comments
I have a model in Simulink R2025b that consists of multiple subsystems. I am generating code for each subsystem separately. When the code is generated by Embedded Coder, each subsystem produces a pointer variable for the model:
RT_MODEL *const rtM = &rtM_;
However, each subsystem has the same definition for this model pointer variable. Is it possible to generate code so that each subsystem would have a unique model pointer variable name? For example:
RM_MODEL *const rtM_subsystem1 = &rtM_subsystem1;
Accepted Answer
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!