function dspblkacf2()
% DSPBLKACF2 DSP Blockset Autocorrelation block helper function.

% Copyright 1995-2000 The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 2000/04/29 22:54:30 $

blk = gcbh;
AllPositiveLags = get_param(blk,'AllPositiveLags');  
   
mask_enables = get_param(blk,'maskenables');
      
if strcmp(AllPositiveLags,'on'),
    mask_enables(2) = {'off'};
else
    mask_enables(2) = {'on'};
end

set_param(blk,'maskenables',mask_enables);

