how to define the output of a system object as a bus element in simulink?
조회 수: 15 (최근 30일)
이전 댓글 표시
I am using matlab system objects (SysOb) in simulink. I want to have the outputs assigned to a bus element. I can do this with a Subsystem and want the same behaviour for a SysOb. I tried creating an output struct for the SysOb but when I connect this output to a bus selector there are no signals (fields?) to pick. I assume that the SysOb should be at least as good as a Subsystem.
댓글 수: 3
Manikanta Aditya
2024년 4월 17일
Oh Alright, I just shared the references hoping they can guide you to some extent.
답변 (2개)
Mark McBroom
2024년 4월 16일
- create a Simulink Bus with the same layout as the MATLAB structure you are creating in your system object.
- Set the type of the system object output to be this simulink bus using the getOutputDataTypeImpl() method:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!