Switch block requires all signal to be same virtuality.
4 views (last 30 days)
Show older comments
Hi,
I had a Simulink model that is built in Matlab 2016b and now I am trying to update it to Matlab 2018b. I do run the upgrade advisor. It complained about the virtuality and now when I try to run the model it gives me an error saying that the signals to the switch are not of same virtuality. Before the switch I have a bus creator. In the bus creator the non-virtual option is not selected so I assume that it is virtual. The other signal to the switch is then non-virtual.
However, it works completely fine in Matlab 2016b. I do not know what the issue is actually. I did change the virtuality of the bus creator before the switch but the generated code gives alot of changes. It is really annoying and by company guidelines we should not non-virtual signals if these cases. How do I solve this issue?
0 Comments
Answers (1)
Ishu
on 22 Aug 2023
Hi Pebbe,
As per the information provided by you, I tried to create a dummy model to reproduce the same error. The model is working fine when I updated it to MATLAB R2018b.
You can refer to this documentation for more information:
0 Comments
See Also
Categories
Find more on Interactive Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!