필터 지우기
필터 지우기

Bus array across model boundaries

조회 수: 3 (최근 30일)
Allen Brock
Allen Brock 2017년 4월 27일
답변: Fei Deng 2017년 5월 1일
I'm attempting to send a bus array across model boundaries, but Simulink throws an error complaining that the port dimensions do not match. The input port of the referenced model is set to accept the bus type and is configured to inherit dimensions. I've attached an example model which shows the behavior.
I have gone through the Simulink help which describes using an array of busses (https://www.mathworks.com/help/simulink/ug/combining-buses-into-an-array-of-buses.html) and it does indicate that one of the benefits is using busses across model boundaries. Unfortunately, I wasn't able to locate an example file which showed the implementation and ran in to the problem above.
Any help is greatly appreciated!

답변 (1개)

Fei Deng
Fei Deng 2017년 5월 1일
Hi Allen, if you set the port dimension of input (Request<DriveLimit>) to be 3 to reflect the three buses in the array of buses, the problem is solved. There is an example similar to your model that you can take a look at https://www.mathworks.com/help/simulink/ug/importing-structures-of-matlab-timeseries-objects-for-bus-signals-to-a-root-level-input-port.html

카테고리

Help CenterFile Exchange에서 Component-Based Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by