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


%************************************************************ 
% 
% Copyright 2002 The Mobile and Portable Radio Research Group 
% 
% Part of GUI for downlink simulator. 
% Invokes the appropriate menu when the NEXT button  
% of the Other DPCHs menu is pressed 
% 
%************************************************************ 
global NumDPCHcalls DPCHremainder CallNumber LastCallChannelCount 
global DPCHformatHandle1 DPCHformatHandle2 DPCHformatHandle3 DPCHformatHandle4 
 
 
FormatIDs = [0 3 5 8 11 14 17 20 23 26 29 32 35 38 41 44 47]; 
 
CallNumber = CallNumber+1; 
if CallNumber <= NumDPCHcalls 
   fee1 = FormatIDs(get(DPCHformatHandle1 ,'value')); 
   fee2 = FormatIDs(get(DPCHformatHandle2 ,'value')); 
   fee3 = FormatIDs(get(DPCHformatHandle3 ,'value')); 
   fee4 = FormatIDs(get(DPCHformatHandle4 ,'value')); 
   SimConfig.OtherDPCHformatID = [SimConfig.OtherDPCHformatID fee1 fee2 fee3 fee4]; 
   close; 
   DPCHMenu(SimConfig); 
else 
   if DPCHremainder >= 1 
      fee1 = FormatIDs(get(DPCHformatHandle1 ,'value')); 
      SimConfig.OtherDPCHformatID = [SimConfig.OtherDPCHformatID fee1]; 
   end  
   if DPCHremainder >= 2 
      fee2 = FormatIDs(get(DPCHformatHandle2 ,'value')); 
      SimConfig.OtherDPCHformatID = [SimConfig.OtherDPCHformatID fee2]; 
   end 
   if DPCHremainder >= 3 
      fee3 = FormatIDs(get(DPCHformatHandle3 ,'value')); 
      SimConfig.OtherDPCHformatID = [SimConfig.OtherDPCHformatID fee3]; 
   end 
   if DPCHremainder == 4 
      fee4 = FormatIDs(get(DPCHformatHandle4 ,'value')); 
      SimConfig.OtherDPCHformatID = [SimConfig.OtherDPCHformatID fee4]; 
   end 
   close; 
   ModulatorMenu; 
end