Initialization of a model workspace under a mask
4 views (last 30 days)
Show older comments
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 !
0 Comments
Answers (1)
Daniele Sportillo
on 11 Dec 2024
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
0 Comments
See Also
Categories
Find more on Create Block Masks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!