function commblkquantdec(block, action)
% COMMBLKQUANTDEC Mask dynamic dialog function for the Quantizing Decoder block

% Copyright 1996-2011 The MathWorks, Inc.

%*********************************************************************
% --- Action switch -- Determines which of the callback functions is called
%*********************************************************************

switch(action)

    %*********************************************************************
    % Function Name:     init
    % Description:       Main initialization code
    % Inputs:            current block
    % Return Values:     none
    %********************************************************************
  case 'init'

    % --- Set Field index numbers
    idxQuDType = dspGetMaskParamIdx(block, 'QuDType');

    Vals  = get_param(block, 'maskvalues');

    % Set the DSP Scalar Quantizer Decoder block's output type, which then propagates to the
    % output of the Comms Quantizing Decoder block
    set_param([block '/Scalar Quantizer Decoder'], 'dataType', Vals{idxQuDType});

    % ---- end of case 'init'

  otherwise
    error(message('comm:commblkquantdec:InvalidArg'));

end     % end of switch(action) statement

% [EOF] commblkquantdec.m
