Bus signals from simulink functional block

조회 수: 2 (최근 30일)
Neal Chaudhuri
Neal Chaudhuri 2021년 11월 1일
댓글: Neal Chaudhuri 2021년 11월 3일
Hey everyone,
I am trying to get bus data in and out of matlab function block in simulink. Here's a simple model I have tried to test to it out:
The function is defined as :
function y = fcn(b1, b2)
y.b1 = b1 - b2;
y.b2 = b1 + b2;
I have created a simulinkBus; "x" as shown in the image below:
But I keep getiing this error, when I run my model:
What am I doing wrong here?

답변 (1개)

Alex Alex
Alex Alex 2021년 11월 2일
look here
https://www.mathworks.com/help/simulink/ug/attach-bus-signals-to-matlab-function-blocks.html
  댓글 수: 1
Neal Chaudhuri
Neal Chaudhuri 2021년 11월 3일
Hey Alex,
Thanks for your suggestion. I have been following the information from the link you recommended, but to no avail.
And, I also can't find "Ports and Data Manager" in my simulink toolstrip.
Regards,
Neal

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

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by