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


%Copyright 2002 The Mobile and Portable Radio Research Group 
% 
%This code is part of the GUI  
%Path(P1); 
%t0=clock; 
UplinkSimConfig.MPathFlag=get(MPathHandle,'Value'); 
clear Delay Amp 
 
Delay(1)=str2num(get(DelayHandle1,'string')); 
fee=str2num(get(DelayHandle2,'string'))*1e-9; 
if ~isempty(fee) 
   Delay(2)=fee; 
end 
fee=str2num(get(DelayHandle3,'string'))*1e-9; 
if ~isempty(fee) 
   Delay(3)=fee; 
end 
fee=str2num(get(DelayHandle4,'string'))*1e-9; 
if ~isempty(fee) 
   Delay(4)=fee; 
end 
fee=str2num(get(DelayHandle5,'string'))*1e-9; 
if ~isempty(fee) 
   Delay(5)=fee; 
end 
fee=str2num(get(DelayHandle6,'string'))*1e-9; 
if ~isempty(fee) 
   Delay(6)=fee; 
end 
 
Amp(1)=str2num(get(AmpHandle1,'string')); 
fee=str2num(get(AmpHandle2,'string')); 
if ~isempty(fee) 
   Amp(2)=fee; 
end 
fee=str2num(get(AmpHandle3,'string')); 
if ~isempty(fee) 
   Amp(3)=fee; 
end 
fee=str2num(get(AmpHandle4,'string')); 
if ~isempty(fee) 
   Amp(4)=fee; 
end 
fee=str2num(get(AmpHandle5,'string')); 
if ~isempty(fee) 
   Amp(5)=fee; 
end 
fee=str2num(get(AmpHandle6,'string')); 
if ~isempty(fee) 
   Amp(6)=fee; 
end 
close; 
UplinkSimConfig.Delay=Delay; 
UplinkSimConfig.Amp=Amp; 
ErrorRun = UplinkSimulator(UplinkSimConfig); 
clear global 
%Path(P); 
%etime(clock,t0);