Skip to content

Commit d6c755c

Browse files
authored
Merge pull request #190 from nunoguedelha/feature/improve-wbt-blocks-initialisation-during-compilation
Improved compilation time of WBToolbox blocks by optimizing `Blockinitialization()`
2 parents 114ac0e + 771c7f8 commit d6c755c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matlab/+WBToolbox/BlockInitialization.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
blockNameSplit = strsplit(currentBlock,'/');
1717
topLevel = blockNameSplit{1};
1818

19-
% Get all the blocks from the top level of the system
20-
blocks_system = find_system(topLevel,'LookUnderMasks','on','FollowLinks','on');
19+
% Get all the "Config" blocks from the top level of the system (name of block under mask matching 'ImConfig')
20+
blocks_system = find_system(topLevel,'LookUnderMasks','on','FollowLinks','on','Regexp','on','Name','ImConfig');
2121

2222
% Get the name of the block's subsystem
2323
%[blockScopeName,~] = fileparts(blockAbsoluteName);

0 commit comments

Comments
 (0)