Is it possible to add a library to the Simulink Library Browser in Matlab Simulink 7.6 (R2010b)?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mario Daniele Fiore
le 14 Mar 2017
Commenté : Mario Daniele Fiore
le 14 Mar 2017
From the simulink library browser is possible to create a new library. I would like to shows this custom library in the Simulink Library Browser. The methods I found online don't apply for my version of matlab/simulink (7.6 - R2010b).
0 commentaires
Réponse acceptée
ES
le 14 Mar 2017
function blkStruct = slblocks
BlocksetName = 'YourLibrary';%mdl file name
Browser(1).Name = 'My Library';%How it appears in Simulink library
blkStruct.Name = sprintf('My Library');
blkStruct.OpenFcn = BlocksetName;
blkStruct.MaskDisplay = '';
Browser(1).Library = BlocksetName;
Browser(1).IsFlat = 0;% Is this library "flat" (i.e. no subsystems)?
blkStruct.Browser = Browser;
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!