How can one get Block Choices for a Configurable Subsystem in an array by using Matlab Command?
6 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Arnaud Miege
on 21 Jul 2011
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
More Answers (0)
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!