Matlab/simulink + model advisor
显示 更早的评论
I have customised top-level block library and sub-library linked to the top-library block for my model. My intention is to check the names of blocks within the sub-library block . How can i get the list of blocks from the sub-library?
with the following code , i can have all reference blocks from my model to aboth libraries( since there is direct link from my model to top_level library as well) but i want to look at the sub-library blocks only.
system=bdroot;
blocks = find_system(system,'FollowLinks','on',...
'LookUnderMasks','on',...
'LinkStatus','resolved');
refblocks = get_param(blocks,'ReferenceBlock');
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!