Borrar filtros
Borrar filtros

Switch block requires all signal to be same virtuality.

7 visualizaciones (últimos 30 días)
Peppe
Peppe el 24 de Mayo de 2023
Respondida: Ishu el 22 de Ag. de 2023
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?

Respuestas (1)

Ishu
Ishu el 22 de Ag. de 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:

Categorías

Más información sobre Event Functions en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by