Dear all, 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: "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? and why it has occurred? Thanx
--------------------------------- Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.