hi,
you need to declare val(x). as val(x) has been used without declaring it.

Regards

On Sun, Sep 18, 2011 at 6:52 PM, Dineshkumar Dinesh <dinesh_...@ymail.com>wrote:

>
>
> hello,
> while executing the simple-wireless.tcl file i got the following error i
> dont know how to remove that error,,,,,,if u know kindly help
> me.............
> dineshkumar@ubuntu:~/ns2 exercises$ ns w1.tcl
> can't read "val(x)": no such variable
>    while executing
> "$ns namtrace-all-wireless $namtrace $val(x) $val(y)"
>    (file "w1.tcl" line 11)
> dineshkumar@ubuntu:~/ns2 exercises$ cd -
> /home/dineshkumar
> dineshkumar@ubuntu:~$ 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...
>
>
>

Reply via email to