This is not an error...only a warning.
You can solve it by writing:

set val(chan) Channel/WirelessChannel
...
set chan_ [new $val(chan)]
$ns_ node-config -channel $chan_

instead of

$ns_ node-config -channel $val(chan)

because it is deprecated.
Bye!

Mohammed Abu-Khadra wrote:
> hi all,
> first of all am using Cygwin & ns-2.29 all-in-one .. am trying to run the
> wireless examples associated in this link "simple-wireless.tcl"
>
> http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html
>
> but there is an error msg appears >>
>
> $ns simple-wireless.tcl
>
> num_nodes is set 2
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> SORTING LISTS ...DONE!
> NS EXITING...
>
> so .. plz i need help .. i read a previous reply it said that i have to
> check the path of traffic .. but what path i cant seem to nderstand it !!!
> any1 plz i need help :)
>
> thanx in advance
>   

Reply via email to