function mdlName = getModelName(this)

% get model name from simulink handle

%   Copyright 2005-2012 The MathWorks, Inc.
%     

mdlName = '';
slbh = this.SLBlockHandle;
if slbh > 0    
    mdlName = get_param(bdroot(slbh), 'Name');
end

end
