Model reference - Data

2 ビュー (過去 30 日間)
Kumaraguru Sivasankaran
Kumaraguru Sivasankaran 2021 年 3 月 1 日
回答済み: Rishav 2024 年 5 月 15 日
I have a model that is going to grow big as I work on. I prefer it to be modular and looked at using Model Reference for building individual components and then build this into the parent model. This approach seems good since I can collaborate with many people. Here is my question: Should I use simulink data dictionary (model file) or model workspace by running a matlab script/ .mat file?
SDD seems more elegant but swapping between different data sets is tricky. I am also not sure if I can programmatically access reference model parameters if using SDD? Is that correct?

回答 (1 件)

Rishav
Rishav 2024 年 5 月 15 日
Hi Kumaraguru,
For large, collaborative projects where modularity and data management are critical, Simulink Data Dictionary is generally the more robust choice. The ability to programmatically access and modify the data also means that you can automate many tasks, including swapping between different datasets.
If you are concerned about the complexity of swapping data sets with SDD, consider developing a set of MATLAB scripts or functions that automate these tasks. This way, you can enjoy the benefits of centralized data management while minimizing the overhead of managing different data sets.
You can programmatically access and modify data in the SDD using MATLAB commands (Simulink.data.dictionary.open, create, Entry, etc.), which means you can automate data updates and access reference model parameters programmatically.
Please refer to the below mentioned documentation for more information on Simulink Data Dictionary:

カテゴリ

Help Center および File ExchangeManage Design Data についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by