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!