Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How does modelworkspace carry over when model is integrated into larger system?

1 回表示 (過去 30 日間)
Mark Ekblad
Mark Ekblad 2017 年 4 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a model where I use the modelworkspace. How do I integrate that model into another larger model and keep the workspace intact? Do I need to make it a reference model or use a data dictionary?

回答 (1 件)

Sudarshan Kolar
Sudarshan Kolar 2017 年 4 月 25 日
Hello Mark,
You can go to model explorer, right click on the Model workspace and say "Import" to import any data related to the child model. Note that you will have to export your model workspace as a MAT file from the smaller model first.
As you mentioned, you can also use Simluink Data Dictionary and keep adding values into it as your model grows.
Sudarshan
  1 件のコメント
Mark Ekblad
Mark Ekblad 2017 年 4 月 26 日
Thanks, but I guess I need to clarify. I want each subsystem to have its own workspace or data dictionary. It seems like your solution would add to the larger model's workspace. For example , if I have two developers and they both have a parameter called AUTO, one has it defined as 0 another as 1. If I combined these subsystems into a larger system AUTO will be incorrect. I am looking for a way for each subsystem to have its own namespace.

Community Treasure Hunt

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

Start Hunting!

Translated by