Use bus as output port in simulink

1 次查看(过去 30 天)
Luis Ruiz
Luis Ruiz 2019-7-3
回答: Jonas 2019-7-4
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?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by