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

조회 수: 16 (최근 30일)
Sai
Sai 2019년 4월 3일
답변: Dhanashree Mohite 2019년 4월 8일
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
Sai
Sai 2019년 4월 4일
Thank you but this is will nor help in my case.
I want to check the names without going inside the subsystem.

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

답변 (1개)

Dhanashree Mohite
Dhanashree Mohite 2019년 4월 8일
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:

카테고리

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

태그

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by