MATLAB: Is it possible to locate the blocks that are causing specific license checkout requirements for the model using the Model Manifest in Simulink 7.5 (R2010a)

blocksfindlicensemanifestmodelsimulink

I have a model and I can see that it requires a certain set of licenses, either from the Model Manifest report, or from the command
license('inuse')
I would like to track down which blocks are responsible for the specific licenses. Is this possible?

Best Answer

This functionality is not directly provided in Simulink 7.5 (R2010a). As a possible workaround, you can use the property "ReferenceBlock" to perform an exhaustive query of the blocks in your model.
As an example,
blks=find_system('TS_example');
libchk{1}='simevents'; %name of library ;

libchk{2}='otherpossiblelibraryprefixeshere';
%note that libraries and their sub-structured components may
% not have the same name so you must list all possible libraries
% in the libchk cell
blks=find_system('TS_example');
libchk{1}='simevents'; %name of library ;
libchk{2}='otherpossiblelibraryprefixeshere';
for ind = 1: length(blks)
try
ind;
refblk=get_param(blks{ind},'ReferenceBlock');
if strncmp(refblk,libchk{1},length(libchk{1}))
disp(['Block found in referenced library ',blks{ind}]);
elseif strncmp(refblk,libchk{2},length(libchk{2}))
disp(['Block found in referenced library ',blks{ind}]);
end
catch EM
end
end
Block found in referenced library TS_example/Entity Splitter