How to get the Port selected within the Architecture Model in System Composer?

조회 수: 1 (최근 30일)
How to get the Port selected within the Architecture Model in System Composer?
This means you would like to get an object in the Workspace, this would be necessary for example to change the Stereotype programmatically.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 9월 2일
편집: MathWorks Support Team 2021년 11월 17일
Right now there is no function implemented to do so.
But here you can find the files which are able to resolve the issue.
The first part is p-coded, because there are undocumented features in the script. We try to document these features in a future release in order to show the whole API.
The function is used to get the Port Handles inside the editor.
In order to use the functions, please download the attached files and run the function 'getSelectedPort' while having one or more Ports selected.
Then you will get the selected ports as an object in the MATLAB Base Workspace.
The API from System Composer which was used to write the function is documented here:

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by