Use bus as output port in simulink

조회 수: 2 (최근 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