Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding all blocks from a specific library in Simulink

354 views
Skip to first unread message

Ross B.

unread,
Aug 25, 2010, 11:54:06 AM8/25/10
to
Hi all,

I'm trying to determine if there is a simple way to find all blocks from a certain library, e.g. Discrete, using the 'find_system' command.

Obviously, i could use find_system(sys, 'BlockType', ... ) for each type of block in the Discrete library, for example, but I was wondering if it is possible to find all blocks at once using some other block parameter.


Thanks,

RB

Ross B.

unread,
Aug 25, 2010, 11:54:06 AM8/25/10
to

Ross B.

unread,
Aug 25, 2010, 1:28:21 PM8/25/10
to
I figured it out, for anyone who has the same problem:

load_system('simulink');
disc_blocks=find_system('simulink/Discrete');
close_system('simulink');

0 new messages