Initialization of a model workspace under a mask

조회 수: 10 (최근 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 CenterFile Exchange에서 Manage Design Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by