You should make changes in some tcl files in the directory '.../tcl/lib/'.

See the following link:

http://icapeople.epfl.ch/widmer/uwb/ns-2/index.html

In this link many changes are made to install new changes in the physical
and mac layers of ns-2. Also a new propagation model (tarokh propagation) is
also added. See what are changed in the directory '.../tcl/lib/' regarding
tarokh propagation only (DO NOT MAKE the other changes of course). You will
find the changes in patch.tcl.lib file that you can download from the link
above.

 

I hope that this will help you.

 

From: ibrahim koda [mailto:[EMAIL PROTECTED] 
Sent: Samstag, 15. September 2007 12:29
To: [EMAIL PROTECTED]
Subject: Problem ricean propagation model

 

Dear Samer Bali

I am new to NS-2, and frankly I am still in the learning phase to use it in 
 my study, I am trying to include the .cc and .h classes of the 
 Ricean propagation model within the simulator. I am working under windows 
 (using Cygwin).I have put the classes  in the mobile directory in ns.

  When I am trying to test the Ricean propagation model (after I have added
it to NS-2) using 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 portion related to the error: 
  /************************************************************** 
  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


 Please if u can help me

thank you



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

  

  _____  

Tonight's top picks. What will you watch tonight? Preview
<http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http:/tv.ya
hoo.com/%20%0d%0a>  the hottest shows on Yahoo! TV. 

Reply via email to