What are "gap ports" in Simulink?

조회 수: 1 (최근 30일)
Zachary
Zachary 2020년 1월 20일
댓글: Zachary 2020년 1월 27일
I am trying to convert a Subsystem to a Subsystem Reference, but I get this error message. What are "gap ports"? I can't find any mention of it on MATLAB Documentation or MATLAB Answers.
Capture.PNG

채택된 답변

Payas Bahade
Payas Bahade 2020년 1월 24일
Hi Zachary,
This is a known issue and the error is due to the number of port handles and the number of port blocks inside the Subsystem being unequal.
To get rid of the error, both port handles and port blocks have to be equal in number.
Hope this helps!
  댓글 수: 1
Zachary
Zachary 2020년 1월 27일
In the end, I was unable find the mismatch between port handles and number of port blocks. Instead of using the toolstrip UI conversion, I manually copied the contents into a new Blank Subsystem, saved the file, and configured a new Subsystem Reference block to point to this new file.
If this post is viewed by others, I might have been able to troubleshoot by reading the block's 'PortHandles' and 'Ports' properties...
port_handles = get_param(gcb,'PortHandles')
ports = get_param(gcb,'Ports')
...and altering the incorrect values with set_param, but I didn't try this so no promises.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by