function impcblock_mdcallback(blk)
% Internal use
%

% Author:  R. Chen
% Copyright 2013-2014 The MathWorks, Inc.

%% if it is inside a MMPC block, there is no coupling
if mpc_ispartofmmpc(blk)
    return
end
%% otherwise, if md_inport is on, n_md is enabled
prompts = get_param(blk,'MaskPrompts');
visibles = get_param(blk,'MaskVisibilities');
value = get_param(blk,'md_inport');
visibles{find(strcmp('MPC:general:BlgNumMD',prompts))} = value;
set_param(blk,'MaskVisibilities',visibles);
