Thread Subject: Simulink libraries from command line

Subject: Simulink libraries from command line

From: Michael

Date: 9 Jan, 2009 14:20:19

Message: 1 of 4

Does anybody know a possibility to find the names of all installed Simulink libraries from the command line?

Subject: Simulink libraries from command line

From: Praetorian

Date: 9 Jan, 2009 16:10:53

Message: 2 of 4

On Jan 9, 7:20=A0am, "Michael" <nospam.ebnic...@bachmann.info> wrote:
> Does anybody know a possibility to find the names of all installed Simuli=
nk libraries from the command line?

One (very inefficient) way would be to recursively look through the
MATLAB installation directory for all .mdl files, load them into
memory using 'load_system', use

strcmp( get_param( mdlFileName, 'BlockDiagramType' ), 'library' )

to determine if the current model is a library and then unload it
using 'close_system'.

Subject: Simulink libraries from command line

From: Phil Goddard

Date: 9 Jan, 2009 16:28:02

Message: 3 of 4


This is undocumented:

>> [libDesc, libNames] = libbrowse('initialize');

This is the first part of the code that gets called when the Simulink library browser gets rendered.
libDesc is the name that appears in the library browser.
libNames are the MATLAB command that will open that particular blockset.

>> [libDesc, libNames] = libbrowse('create');

will give you the names of all sublibraries too, but takes much longer to execute.

Phil.

Subject: Simulink libraries from command line

From: Michael

Date: 13 Jan, 2009 17:35:02

Message: 4 of 4

The solution of Phil is the perfect answer to what I need. Thanks a lot!

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Michael 9 Jan, 2009 09:25:05
command line Michael 9 Jan, 2009 09:25:05
rssFeed for this Thread

Contact us at files@mathworks.com