function url = getBlockOutportURL(aBlockHandle, aOutPortNumber)
% GETBLOCKOUTPORTURL(aBlockHandle, aOutportNumber)

%   Copyright 2010-2011 The MathWorks, Inc.

try
    url = char(Simulink.URL.PortURL(Simulink.ID.getSID(aBlockHandle), 'out', aOutPortNumber));
catch 
    % return empty when PortURL is not successful
    url = '';
end   
