3.0

3.0 | 1 rating Rate this file 10 downloads (last 30 days) File Size: 1.35 KB File ID: #13465

allbd - Returns the names of all loaded block diagrams

by Malcolm Wood

 

21 Dec 2006 (Updated 23 Dec 2009)

Code covered by the BSD License  

Names of all loaded (or partially loaded) models and libraries are returned in a cell array

Download Now | Watch this File

File Information
Description

This very simple function is just a shorthand for the find_system call which returns the names of all loaded block diagrams- models and libraries. Note that loaded block diagrams are not necessarily visible, especially if they are libraries.

Note also that the find_system call is not necessarily what you might expect to use: it is the fastest- but perhaps not the most intuitive- way to find the list of loaded block diagrams. The command we might think of first would be:
>> names = find_system('Type','block_diagram')
while the command used here is:
>> names = find_system('SearchDepth',0)
By specifying a "SearchDepth" of zero, we ensure that Simulink doesn't search through the entire object hierarchy looking for objects whose "Type" parameter is equal to "block_diagram". And since we know that all objects at SearchDepth zero are block diagrams, we don't even need to specify a type.

Required Products Simulink
MATLAB release MATLAB 7.3 (R2006b)
Other requirements Platform independent, and should work even with very old versions of Simulink.
Zip File Content  
Other Files allbd.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Feb 2010 Sunny Billava  
Please login to add a comment or rating.
Updates
17 Dec 2009

Review

23 Dec 2009

Add copyright.

Tag Activity for this File
Tag Applied By Date/Time
simulink Malcolm Wood 22 Oct 2008 08:53:43
simulink block_diagram find_system Malcolm Wood 22 Oct 2008 08:53:43
all loaded models Sunny Billava 18 Feb 2010 05:43:00
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com