Use bus as output port in simulink

I created a bus.
Then that bus is passed to an output port.
When I run:
[~,~,Y]=sim( my_model, t );
Simulink complaints because my bus is a non-built-in type.
Is there a way to get the output?

Respuestas (1)

Jonas
Jonas el 4 de Jul. de 2019

0 votos

You need to create a Bus Object and set the data type of the output port to Bus Object, referring to the name of the Bus Object you created.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 3 de Jul. de 2019

Respondida:

el 4 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by