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 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

リリース

R2018a

質問済み:

2019 年 7 月 3 日

回答済み:

2019 年 7 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by