model reference variants control using block mask parameter
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear all,
is there a way to implement model reference variants where the variant selection is controlled by a mask parameter rather than using parameter that is defined in the base workspace. I'd like to define a parameter structure in the workspace but passed to the model reference block in a mask and use values from that structure to drive which model variant is chosen.
Example Two models are defined to represent a physical phenomena, i.e. an idealized and a detailed one. In the base workspace a parameter structure is defined as follows:
paramStruct.physModel_A.isIdealized = true; % presumes that model is idealized
paramStruct.physModel_B.isIdealized = false: % presumes that model is detailed
The goal is to use the element of the parameter structure to control the variant selection of the model reference. So far, model reference variants works if the condition for the variant selection is explicitly defined as parameter (and not as a part of a structure) in the base workspace (e.g. isIdealized = true).
Many thanks in advance.
댓글 수: 1
Adithya Addanki
2016년 1월 14일
Hi Andrei,
Please refer to the links below for a good description on Dynamic Mask dialogs:
Possible Workaround:
I hope this helps.
Thank you,
Adithya
답변 (1개)
Dinesh
2024년 7월 3일
Hi,
The following documentation link will help you achieve this: https://www.mathworks.com/help/simulink/ug/approaches-to-control-active-variant-choice-of-a-variant-block.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Manage Variant Modeling Components에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!