Simulink Variant, missing "Override Using" context menu
2 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288275/image.png)
Below is 2016b
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288276/image.png)
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Variant Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!