[ns] error in using Ricean model

ibrahim koda ibrahimchina2008 at yahoo.com
Sun Sep 16 19:31:14 PDT 2007


Hi all 
   
  I am trying to implement the ricean propagation(include the .cc and .h classes of the Ricean propagation model within the simulator)I have put the classes  in the mobile directory in ns.When I am trying to test the Ricean propagation model. After following the
 instructions below :
  firstly, i added mobile/prop_ricean.o \ to OBJ_CC in Makefile.in  
   secondly, 
 I ran ./config  then I ran "make" .
When I am trying to test the Ricean propagation modelusing the following code I got the following error: 
   invalid command name "Propagation/ricean"
     while executing
 "Propagation/ricean create _o12 "
     invoked from within
   
  "can't read "propInstance_": no such variable 
          while executing 
  "$ns_ set propInstance_" ... " 
    
.
  .
  .
  Here is the code 
  /************************************************************** 
  set val(chan)           Channel/WirelessChannel    ;#Channel Type 
set val(prop)           Propagation/Ricean         ;# radio-propagation model 
set val(netif)          Phy/WirelessPhy            ;# network interface type 
set val(mac)            Mac/802_11                 ;# MAC type 
set val(ifq)            Queue/DropTail/PriQueue    ;# interface queue type 
set val(ll)             LL                         ;# link layer type 
set val(ant)            Antenna/OmniAntenna        ;# antenna model 
set val(ifqlen)         50                         ;# max packet in ifq 
set val(nn)             2                          ;# number of mobilenodes 
set val(rp)             DSDV                       ;# routing protocol 
#set val(rp)             DSR                       ;# routing protocol 
set val(x)  500 
set val(y)  500 
  
# Initialize Global Variables 
set ns_  [new Simulator] 
set tracefd     [open wireless_mitf.tr w] 
$ns_ trace-all $tracefd 
  set namtrace [open wireless_mitf.nam w] 
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y) 
  # set up topography object 
set topo       [new Topography] 
  $topo load_flatgrid $val(x) $val(y) 
  # 
set prop_inst [$ns_ set propInstance_] 
$prop_inst MaxVelocity  2.5; 
$prop_inst RiceanK        6; 
$prop_inst LoadRiceFile  "rice_table.txt"; 
  
How can I solve such error
 How to deal with it?
 Please give me a solution...
   your help is very much appreciated
 regards


Ibrahim Khider Eltahir Khider
Communication Software and Switch Technology Research Center
Dept of Electronic and Information Systems
Huazhong University of Science and Technology
,P.R.China-Wuhan-430074
Mobile: 0086-27-63452269
Home Tel: 0086-27-87540211
       
---------------------------------
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 


More information about the Ns-users mailing list