How can one get Block Choices for a Configurable Subsystem in an array by using Matlab Command?

조회 수: 2 (최근 30일)
Hi, I am working on a simulink model which has no. of Configurable Subsystems. As we know Configurable Subsystem acts as a master block for the blocks inside a same library. In the model view we can see the block choices by right clicking and can select any one. I need to do the same thing through a Matlab Script. For doing that first of all we need to get the list of blockchoices for that particular Configurable Subsystem in an array.
Please suggest a command that can solve my purpose.
Thanks, Bhavnish.

채택된 답변

Arnaud Miege
Arnaud Miege 2011년 7월 21일
get_param(gcb,'BlockChoice')
will give you the current block choice for the block.
get_param(gcb,'MemberBlocks')
will give you the different choices in one string, separated by commas.
HTH,
Arnaud
  댓글 수: 1
Bhavnish
Bhavnish 2011년 7월 21일
Thanks Arnaud.
Before your answer I tried so many things. I was not aware of the parameter name 'MemberBlocks'.This has solved my purpose.

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

추가 답변 (0개)

카테고리

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

태그

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by