How do I pass a bus object as a Parameter in the S-Function Builder screen?

조회 수: 3 (최근 30일)
Hi all!
After doing an 'Add Parameter' in the Ports And Parameters section of S-Function Builder screen, I see that "Bus:<object name>" is not one of the available Data Types. Is there another way to do this, or is it a known restriction/bug? I'm using release R2021b. I'd appreciate any help. Thanks.
  댓글 수: 1
Jeremy Johnson
Jeremy Johnson 2022년 12월 22일
Did you ever get an answer to this or figure it out? I am running into the same problem.

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

채택된 답변

RANGASWAMY
RANGASWAMY 2022년 12월 27일
Hi Jeremy, if memory serves me right, Mathworks support people told me that was not possible. So, I converted it to a vector and passed that as another input to the S-Function. I suspect there are other, better ways to do this, but it served my purpose.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by