Skip to content

Commit

Permalink
Merge pull request #190 from nunoguedelha/feature/improve-wbt-blocks-…
Browse files Browse the repository at this point in the history
…initialisation-during-compilation

Improved compilation time of WBToolbox blocks by optimizing `Blockinitialization()`
  • Loading branch information
diegoferigo authored Jun 16, 2020
2 parents 114ac0e + 771c7f8 commit d6c755c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/+WBToolbox/BlockInitialization.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
blockNameSplit = strsplit(currentBlock,'/');
topLevel = blockNameSplit{1};

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

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

0 comments on commit d6c755c

Please sign in to comment.