function utilUpdateTunerName(currentblock)
% UPDATETUNERNAME  Update the name of the PID Tuner's dialog

%   Copyright 2017-2020 The MathWorks, Inc.

if (license('test','Simulink_Control_Design')==1)
    try
        blkH = get_param(currentblock,'Handle');
        h = slctrlguis.pidtuner.getInstance(blkH);
        if ~isempty(h)
            h.updateName;
        end
    catch E %#ok<NASGU>
    end
end
end
