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)
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).

Réponse acceptée

ES
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)

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!

Translated by