Simulink Coder - Building individual components of models separately and then linking them
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
GianCarlo
on 28 Jan 2014
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 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!