www.pudn.com > WCDMA.rar > AmpCallback.m


%************************************************************ 
% 
% Copyright 2002 The Mobile and Portable Radio Research Group 
% 
% Part of GUI for downlink simulator. 
% Updates user input into Amplitude edit boxes and issues  
% apporiate error dialog if a value greater than 0 is entered 
% 
%************************************************************ 
 
 
global DelayHandle AmpHandle 
 
fee = str2num(get(AmpHandle(BoxNum), 'String'))*1e-9; 
if isempty(fee) 
   set(DelayHandle(BoxNum),'String',[]); 
   for k=(BoxNum+1):6 
      set(DelayHandle(k),'String',[]); 
      set(AmpHandle(k),'String',[]); 
   end 
elseif fee > 0 
   curfig=GenDialog('The Amplitude values must LESS THAN or EQUAL to 0'); 
   uiwait(curfig); 
   GenDialog('Resetting to 0'); 
   set(AmpHandle(BoxNum), 'String','0'); 
end