www.pudn.com > WCDMA.rar > DelayCallback.m
%************************************************************
%
% Copyright 2002 The Mobile and Portable Radio Research Group
%
% Part of GUI for downlink simulator.
% Updates user input into Delay edit boxes and issues
% apporiate error dialog if a value greater than 0 is entered
%
%************************************************************
global DelayHandle AmpHandle
fee = str2num(get(DelayHandle(BoxNum), 'String'))*1e-9;
if isempty(fee)
set(AmpHandle(BoxNum),'String',[]);
for k=(BoxNum+1):6
set(DelayHandle(k),'String',[]);
set(AmpHandle(k),'String',[]);
end
elseif fee < 0
curfig=GenDialog('The Delay values cannot be negative');
uiwait(curfig);
GenDialog('Resetting to 0');
set(DelayHandle(BoxNum), 'String','0');
end