What is the difference between the simulink library and model references?

조회 수: 56 (최근 30일)
Acchan
Acchan 2022년 7월 4일
댓글: Acchan 2022년 7월 5일
What is the difference between the simulink library and model references? I plan to have other users' system models use multiple of my models as components.

답변 (1개)

Kritarth Sinha
Kritarth Sinha 2022년 7월 5일
Hello Acchan
The main purpose of both is same i.e. facilitate the reuse of simulink models. When you work with libraries, simulink "imports" the content of the referenced models in to the main model. Sometimes, this leads to the developer dealing with gigantic models (more than 50k blocks), which can be time consuming. On the other side, model reference deals with separated models. They are put together when you press the simulate button, but during the design time, you deal with completely separated models. With model reference, you can also select acceleration methods (it basically compiles the model) and this can't be done with libraries.
Hope this will help.
  댓글 수: 1
Acchan
Acchan 2022년 7월 5일
Thank you for your answer. It was your explanation that the difference was easy to understand.
I recently learned that there is a subsystem reference. What is the difference between this and a model reference?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by