Managing large number of large set of parameter

20 views (last 30 days)
Amine
Amine on 14 Nov 2025 at 16:13
Commented: Amine on 18 Nov 2025 at 9:32
Hello All,
Do you have some tips for managing a lot of design data. I give you my usecase, maybe you can share yours to improve way to manage data under our models.
My simulink models are component-based with many subsystems reference, each subsystem reference are a variant model of several subsystem reference.
each component of my composition can be instancited many times with different parameters.
I build a kind of framework with mask to path different parameters for each instance.
My paramters are manage like that :
  • CmpObj.Param.MyParam.v
I've got as many m-files as instance of my component. So I have a lot of m-files splitted into many folder which is a nightmare.
What do you think ? How did you do ?

Answers (1)

Akanksha
Akanksha on 18 Nov 2025 at 9:09
Hi Amine,
I understand the challenge of managing so many .m files for component instances. Following are some tips to help organize and manage your design data more efficiently:
1. Use Data Dictionaries :
Instead of multiple .m files, use a Simulink Data Dictionary (.sldd) to store all design data in one place. Link the dictionary to your model and organize parameters, signals, and configurations in structured sections. For large projects, you can create a top-level dictionary and reference component-specific dictionaries to keep things modular.
2. Parameterize Referenced Models and Subsystems :
Define model arguments for referenced models or subsystems so each instance can have unique parameter values without duplicating files. Configure these arguments in the Model Data Editor or programmatically using Simulink.Parameter objects.
3. Manage Variants with Variant Manager :
For models with multiple design alternatives, use Variant Subsystems and Variant Parameters controlled by Simulink.Variant or Simulink.VariantVariable objects. The Variant Manager provides a centralized interface to define, activate, and switch between variants based on conditions or control variables.
Kindly refer to the following links for further information -
Hope this helps!
  1 Comment
Amine
Amine on 18 Nov 2025 at 9:32
Thank you for your answer !
  1. As far as I understood from DataDictionnary, it's good for managing one set of parameter. But if you want to manage many sets of parameters ex : big car, small car, medium car until infinit... I didn't find a smooth way for that using DataDictionnary. You can create one DataDictionnary per sets but if you change the DD link of your model it will modify it and it's a nightmare with version control tools
  2. It's approximativly done like that, but by using mask instead of argument because I mainly use Subsystem Reference.
  3. Already use variant block without using VariantVariable

Sign in to comment.

Categories

Find more on System Composer in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!