Simulink Variant, missing "Override Using" context menu

조회 수: 11 (최근 30일)
Smattering_Applause
Smattering_Applause 2020년 4월 28일
댓글: Smattering_Applause 2020년 5월 8일
I have .slx models provided to me by software writers. These models use Variants. In 2016b there is a context menu "Override Using" that is not present in 2019a. How do I replicate this action with 2019a?
Below is 2019a
Below is 2016b

채택된 답변

Sai Sri Pathuri
Sai Sri Pathuri 2020년 5월 5일
From R2019a, the Override variant conditions and use the following variant option no longer exists. To get the same functionality, use the Label option in Variant control mode instead.
The label mode allows you to specify the name-based variant controls (Label mode active choice). In label mode, the variant control is not evaluated and the choice used in simulation is determined by the Label mode active choice parameter.
Additionally, to choose the active variant based on the evaluation of variant conditions, select Expression as the variant control mode. In expression mode, the variant control can be a Boolean expression, a Simulink.Variant object containing a Boolean expression, or ‘(default)’.
However, Simulink models that were created prior to R2019a with Override variant conditions and use following variant option will continue to work when you update the model to a newer version.
  댓글 수: 1
Smattering_Applause
Smattering_Applause 2020년 5월 8일
To help people parse the instructions down, here's some snippets of what to do.
  1. Right click on the model you would have used "Override Using" on. Select "Block Parameters (Subsystem"
2. Change the Variant Control Mode to "Label"
3. Change the "Label mode active choice" to the Variant Label you want to have active. Then hit "OK" or "Apply" to have them take effect

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by