필터 지우기
필터 지우기

How to associate a set of parameters to a subsystem

조회 수: 2 (최근 30일)
Stephane
Stephane 2018년 12월 5일
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 :
  1. load Tun1 and Tun2 in a structure
  2. create a mask on the subsystem
  3. set structure Tun_x in the mask
  4. 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개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by