Use bus as output port in simulink
조회 수: 2 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!