Create variable interface sizes in System Composer

조회 수: 2 (최근 30일)
Brad
Brad 2024년 4월 6일
댓글: Josh Kahn 2024년 4월 15일
I would like to use System Composer to perform design trades, but to do so I need to be able to easily change interface definitions. Perferably, I would like the ports to inherit the data types and shapes sent to them like a Simulink subsystem does. However, when I try to add a test harness to a system composer block and send it data from a MATLAB workspace, it balks at a difference in port sizes.
Can System Composer interface definitions be made to truly inherit dimensions and types like Simulink models can?

채택된 답변

Josh Kahn
Josh Kahn 2024년 4월 10일
One way is to save the architecture as a Subsystem reference architecture:
The recommended workflow is to use variants to define your design choices and then choose the appropriate variant during your trade study (see Create Variants on the same page). Variant component choices can have different interface and port configurations as long as any connected interfaces and ports align.
Hope this helps!
Josh
  댓글 수: 2
Brad
Brad 2024년 4월 14일
Thanks for clarifying the supported functionality. I was hoping that the low-overhead approach that Simulink supports with inherited data types would flow up into System Composer. Creating System Composer variants is a good approach once the trade space has been downselected somewhat, but a little limiting / time consuming in the earliest trade studies.
Josh Kahn
Josh Kahn 2024년 4월 15일
Thanks @Brad Williams, that's great feedback!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 System Composer에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by