Simulink Coder - Building individual components of models separately and then linking them
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, building a large model with Simulink Coder can take a substantially long time. Is it possible to build individual components of a large model separately, and then link them? What are the limitations, if any? Can this be done for any target?
댓글 수: 0
답변 (1개)
GianCarlo
2014년 1월 28일
Hi Sundeep,
Have you tried partitioning your large model using model reference blocks? In this way, the referenced models are built separately and automatically linked with the parent model. Furthermore, if a referenced model has not changed since the last build, you can configure things so that it will not be rebuilt, accelerating the build time. There's some more information in the documentation here: Generate and reuse code for referenced models There are some limitations to using model references - the component needs to be an atomic subsystem for instance. If you're not familiar with this technique, I'd suggest you start with the doc page here: Overview of model referencing
This is a standard approach to generating code from large models, and can be done for any target using Simulink Coder.
Hope this helps.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!