Use bus as output port in simulink

2 vues (au cours des 30 derniers jours)
Luis Ruiz
Luis Ruiz le 3 Juil 2019
Réponse apportée : Jonas le 4 Juil 2019
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?

Réponses (1)

Jonas
Jonas le 4 Juil 2019
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.

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by