MATLAB Answers

sst
0

Simulink Coder - Building individual components of models separately and then linking them

Asked by sst
on 24 Jan 2014
Latest activity Answered by GianCarlo on 28 Jan 2014
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

Sign in to comment.

1 Answer

Answer by 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

Sign in to comment.