function [ssInBlkHs, ssOutBlkHs, ssTriggerBlkHs, ssEnableBlkHs, ssFcnCallInHs] = getSubSystemPortBlks(subsysH)
%   Return four vectors containing block handles of each individual subsystem Inport, Outport,Trigger, Enable and Function call blocks blocks, Tr

%   Copyright 2008-2011 The MathWorks, Inc.

    ssInBlkHs = find_system(subsysH, ...
                            'SearchDepth',1,...
                            'FollowLinks','on',...  
                            'LookUnderMasks','all', ...
                            'BlockType','Inport');

    ssOutBlkHs = find_system(subsysH, ...
                             'SearchDepth',1,...
                             'FollowLinks','on',...  
                             'LookUnderMasks','all', ...
                             'BlockType','Outport');
                         
    ssTriggerBlkHs = find_system(subsysH, ...
                             'SearchDepth',1,...
                             'FollowLinks','on',...  
                             'LookUnderMasks','all', ...
                             'BlockType','TriggerPort');                            
                         
    ssEnableBlkHs = find_system(subsysH, ...
                             'SearchDepth',1,...
                             'FollowLinks','on',...  
                             'LookUnderMasks','all', ...
                             'BlockType','EnablePort');

    ssFcnCallInHs = find_system(subsysH, ...
                            'SearchDepth',1,...
                            'FollowLinks','on',...  
                            'LookUnderMasks','all', ...
                            'BlockType','Inport', ...
                            'OutputFunctionCall','on');
                         
end