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?

回答(1 个)

GianCarlo
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by