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!