Non-Virtual-Bus setting not recognized when integrating an FMU file

15 visualizaciones (últimos 30 días)
I have successfully compiled and created a FMU from a model with the Simulink Coder.
The Model accepts and exports a Simulink Bus structure as FMI from/to the parent model.
When running the parent model, which integrates the FMU (see first picture below) the following error message is shown:
Error:'Output Port 1' of 'MyModel/FMU' expects a nonvirtual bus or nonbus signal but receives a virtual bus. Convert the virtual bus to a nonvirtual bus or vector using a Signal Conversion or Bus to Vector block.
Here is the original Error message and the relevant part of the parent model:
An this is the model and the port configuration which is converted to the FMU:
The question is, why is the error message still created, even though the port setting is correct?
Regards.
  2 comentarios
R
R el 13 de Sept. de 2024

FMU block does not support virtual buses. Can you verify the Signal Attributes of the Inport block has the option 'Output as nonvirtual bus' checked. If it is checked, please share the model for further debugging.

Martin
Martin el 24 de Sept. de 2024
Thank you for the answer.
both port blocks were already set to use nonvirtual busses.
But we found a solution by using a protected model instead. This worked fine.
We will not pursue the approach via FMU any further.

Iniciar sesión para comentar.

Respuesta aceptada

Martin
Martin el 24 de Sept. de 2024
We consider this request to be closed as another solution has been found.

Más respuestas (0)

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by