Difference between a Simulink library and a model reference

6 ビュー (過去 30 日間)
Jaeha Lee
Jaeha Lee 2020 年 3 月 13 日
回答済み: Sameer 2024 年 10 月 16 日
What is the difference between a Simulink library and a model reference?
So far, I found 2 difference betweem them. is it right?
Reference
1.With model reference, you can also select acceleration methods
(it basically compiles the model)
=> performance improvement
2.Model references allow partial builds when using the coder product.
=> performance improvement
Library
-
Is there more difference about two except these?
Thank you
  1 件のコメント
Jaeha Lee
Jaeha Lee 2020 年 3 月 16 日
For Clarification, I used Libary for one function(like battery monitoring module) in a one project same as model reference.

サインインしてコメントする。

回答 (1 件)

Sameer
Sameer 2024 年 10 月 16 日
Hi Jaeha
Yes, there are additional differences between "Simulink libraries" and "model references" beyond the ones you have mentioned.
Here’s a more comprehensive comparison:
Simulink Library:
1. Purpose: Reusable blocks for consistency across models.
2. Reusability: Centralized updates to library blocks affect all instances.
3. Customization: Limited to parameter changes unless link is broken.
4. Performance: No inherent performance boost.
5. Version Control: Easier for individual blocks.
Model Reference:
1. Purpose: Hierarchical model structuring for complex systems.
2. Modularity: Independent development and testing of components.
3. Performance: Supports acceleration and partial builds for speed.
4. Code Generation: Better for incremental code generation.
5. Encapsulation: Treats models as black boxes, reducing conflicts.
6. Version Control: Easier for entire models.
Hope this helps!

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by