How to use multiple Simulink code generated models in a project?
显示 更早的评论
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!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!