How to get the Port selected within the Architecture Model in System Composer?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 7 月 15 日
編集済み: MathWorks Support Team
2021 年 11 月 17 日
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
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!