Effacer les filtres
Effacer les filtres

How do I search for library links in my model from the command line in Simulink 7.4 (R2009b)?

52 vues (au cours des 30 derniers jours)
In Model Explorer I have an option to search for library links in my model. I would like to know how I can achieve the same using the command line tools.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 16 Août 2010
In order to obtain a list of blocks that are library links you will have to find all blocks in your model that have their 'LinkStatus' property not set to 'none'. One way to achieve this would be to use the FIND_SYSTEM command with a regular expression that excludes all results that are equal to 'none':
libraryLinks = find_system(gcs, 'regexp', 'on', 'linkstatus', '^((?!none).)*$')
You may want to use the 'LookUnderMasks' option of FIND_SYSTEM as well to find the blocks under masks as well.
Alternatively you could use several FIND_SYSTEM calls to find all blocks with another status and combine the results.

Plus de réponses (0)

Catégories

En savoir plus sur Subsystems dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by