- "ModelTop" is the parent model and has "ddTop" as attached data dictionary.
- "ModelBot" is another model which is being used in a "Model Reference" block in "ModelTop". "ModelBot" has "ddBot" as attached data dictionary.
Data Dictionary and Model Reference hierarchy
5 views (last 30 days)
Show older comments
Hi,
I am currently working with data dictionaries but there is strange to me.
Is it mandatory that every parent model needs a reference in its data dictionary to each of its referenced models?
This would mean that in large hierarchical models I need to link the data dictionary to the corresponding model and I need to refernce this model in the parent models data dictionary. This makes the handling a little bit cumbersome.
Thanks for any help / suggestions.
Florian
0 Comments
Answers (1)
Yash
on 28 Oct 2024 at 13:24
Hi Florian,
I am unable to understand the query for referencing a model in the parent model's data dictionary.
Let us assume the following scenario for better understanding
This attaches both the models with each other, and both the data dictionaries with the respective models.
ModelTop -------> ddTop
|
| (via Model Reference)
|
ModelBot -------> ddBot
Now kindly note that "ModelTop" has no access to "ddBot", and "ModelBot" has no access to "ddTop".
This keeps the data separate for the models. If you want to use data from "ddBot" in "ModelTop" you can attach "ddBot" as a referenced dictionary to "ddTop". Note that this is a global operation and will apply to "ddTop" everywhere it is used.
I hope this clarifies the confusion!
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!