How to use multiple Simulink code generated models in a project?
Show older comments
I have an embedded project I am working on where I want to split my simulink model into multiple sub-models and generate code for each separately. If I generate code for each model separately, then the rtU and rtY structures end up get redefined when I include multiple code generated libraries in my project.
Is there a way to configure code generation to avoid this issue?
I have tried changing model settings>code generation>code interface>code interface packaging to "reusable function" and that resolves my concerns with rtU and rtY, but then RT_MODEL is redefined in each generated header file (also I do not know how I am supposed to use the argument "RT_MODEL *const rtM" for the initialization and step functions.
Any inputs/guidance would be great!
Accepted Answer
More Answers (0)
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!