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

1 visualización (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 2 de Sept. de 2021
Editada: MathWorks Support Team el 17 de Nov. de 2021
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:

Más respuestas (0)

Categorías

Más información sobre System Composer en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by