function freblkCallbackEstimationMode(blk)
%   Callback function of FRE block

%   Author: R. Chen
%   Copyright 2018 The MathWorks, Inc.

IsOnlineEstimation = strcmpi(get_param(blk,'EstimationMode'),slsvInternal('slsvGetEnStringFromCatalog','Slcontrol:onlinefre:rbtnElementOnline'));
% switch estimation settings panel depending on mode selection
maskObj = Simulink.Mask.get(blk);
objectOnline = maskObj.getDialogControl('OnlinePlotPanel');
objectOffline = maskObj.getDialogControl('OfflinePlotPanel');
if IsOnlineEstimation
    objectOnline.Visible = 'on';
    objectOffline.Visible = 'off';
else
    objectOnline.Visible = 'off';
    objectOffline.Visible = 'on';
end
