Is it possible to create a library of Model Reference blocks?

1 visualizzazione (ultimi 30 giorni)
The intent is to be able to drag and drop Model Reference blocks from the library onto models. The functions in this library are designed for re-useability across multiple projects. These projects are to be converted to C code using the Embedded Coder, so it seems like it makes most sense to use Model References versus Subsystems.

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 22 Mag 2020
It is possible but based on what you described, I would say a library of subsystem blocks are better than a library of model reference blocks.
Both can be re-used in multiple instanes. Both support code generation using Embedded Coder. Model reference has many advantages but in your case, you may not use it yet you have to carry the burden. For example, a model reference block (or in fact another separate model) needs and can have its own model configuration. Do you need such a configuration that is different than your model and you are willing to maintain it?
For most typical cases, if your function is truly a "library" and intends to be used by multiple projects, I would say a library of subsystem is the straightforward approach.
Please reference this guideline and decision tree, where "linked subsystem" means library.

Più risposte (0)

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by