olindgre 2ece01e1d7 Make powertrain-build not overlap with pybuild in site-packages
Change-Id: I7b59f3f04f0f787d35db0b9389f295bf1ad24f56
2024-09-17 10:25:04 +02:00

20 lines
500 B
Matlab

% Copyright 2024 Volvo Car Corporation
% Licensed under Apache 2.0.
function dstBlocks = getDstBlocks(block)
%% Find the blocks where the input variables are defined
dstBlocks=[];
tmp=get_param(block,'linehandles');
if isfield(tmp,'Outport')
for i=1:length(tmp.Outport)
if tmp.Outport(i)<0
dstBlocks(i)=-1;
else
dstBlocks = [dstBlocks; get_param(tmp.Outport(i),'dstblockhandle')];
end
end
end
end