How to get input and output names of a below subsystem?

13 visualizaciones (últimos 30 días)
Sai
Sai el 3 de Abr. de 2019
Respondida: Dhanashree Mohite el 8 de Abr. de 2019
Is it possible to get names of inputs and outputs without going inside the subsystem using script?
Here inputs are coming from other subsystem/blocks and outputs are going to other subsystem/blocks.
Subsystem.JPG
expected input names : violet,indigo,blue,green
expected output names : yellow,red,white,black
  2 comentarios
Sai
Sai el 4 de Abr. de 2019
Thank you but this is will nor help in my case.
I want to check the names without going inside the subsystem.

Iniciar sesión para comentar.

Respuestas (1)

Dhanashree Mohite
Dhanashree Mohite el 8 de Abr. de 2019
As per my understanding you can use ‘find_system’ command with Blocktype and SearchDepth parameters.
>> find_system('modelName','SearchDepth',2,'BlockType','Inport')
>> find_system('modelName','SearchDepth',2,'BlockType','Outport')
Refer below link for more understanding:

Categorías

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

Etiquetas

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by