How to associate a set of parameters to a subsystem
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a model "M" with 2 subsystems M/C1 and M/C2.
C1 and C2 are identical, with same parameter name llist.
Q : How to associate a parameter set from mfile Tun1.m for C1 and Tun2.m for C2 ?
I have tried :
Solution 1 :
- load Tun1 and Tun2 in a structure
- create a mask on the subsystem
- set structure Tun_x in the mask
- In the mask inititalisation for each file a of the structure vari = Tun_x.vari
It works for simulation but we can't compile "M" because we can't set tunable structures for compilation. And init of subsystem are not included for compilation.
Solution 2 :
With data dictionary
I need to create 2 reference models for C1 and C2 to associate my data dictionaries.
Then when I simulate "M", I have conflict names between Tun1 and Tun2.
Solution 3 :
Rename automatically all parameters in the subsystem (more than 1000) with a prefix.
How to find all parameters list with block path and property in order to modify with a set_param ?
Does somebody have an idea to solve my issue ?
Thank you
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Subsystems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!