function callbackFixedPointButton(blkh)
% CALLBACKFIXEDPOINTBUTTON opens the Fixed-Point Tool in the PID Controller
% 1DOF or 2DOF dialog.
%
%   blkh: the masked subsystem handle of the PID 1dof or 2dof block

%   Author(s): Aaron Zimmerman
%   Copyright 2017-2020 The MathWorks, Inc.

% Fixed-Point Tool Button
if isFixedPointInstalled
    fxptdlg(blkh)
else
    DAStudio.error('Simulink:blocks:licenseRequiredForFixedPointTool',getfullname(blkh));
end
end

function val = isFixedPointInstalled
% Check if fixedpoint license exists and if it is actually installed
val = license('test','Fixed_Point_Toolbox') && ~isempty(ver('fixedpoint'));
end
