How to associate a set of parameters to a subsystem
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!