Model reference - Data

2 views (last 30 days)
Kumaraguru Sivasankaran
Kumaraguru Sivasankaran on 1 Mar 2021
Answered: Rishav on 15 May 2024
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?

Answers (1)

Rishav
Rishav on 15 May 2024
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:

Categories

Find more on Manage Design Data in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!