Initialization of a model workspace under a mask

4 ビュー (過去 30 日間)
Antoine
Antoine 2024 年 12 月 6 日
回答済み: Daniele Sportillo 2024 年 12 月 11 日
Hello everyone,
I've had a problem for a while that I can't solve. I'm currently working on a simulink schema in which there is a reference model ("MODEL" in the figure below). This reference model contains a system mask, so a mask is automatically created in the model block when it is referenced.
My reference model contains an output bus. It's called "OUT" in the lower figure.
It seems that the workspace has not been initialised properly. Does anyone have any idea how to solve this problem?
Note that as this is a system mask, I don't have access to the usual mask initialisation window.
Thanks in advance !

回答 (1 件)

Daniele Sportillo
Daniele Sportillo 2024 年 12 月 11 日
Hi Antoine,
I believe the error you're experiencing is due to the root model not being able to access the out_bus defined in the data dictionary of your referenced model. To resolve this issue, you should reference the data dictionary of the referenced model within the root model's data dictionary.
For more information, please refer to this page: Reference Data Dictionaries
Best,
Daniele

カテゴリ

Help Center および File ExchangeCreate Block Masks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by