[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] ns running problem



What version of ns you're using? I just ran
the script with ns-2.1b8 on redhat linux 2.2.16 
without any problem.

Kun-chan Lan

On Sat, 25 Aug 2001, s w wrote:

> Dear All,
> I think ns has compiled alright, however, when I try to run 
> simple-wireless.tcl in ns tutoria, I get error msg as below:
> 
> D:\netsim\ns2\bin>ns simple-wireless.tcl
> num_nodes is set 2
> WirelessPhy: channel lookup of Channel/WirelessChannel failed
> 
>     (_o17 cmd line 1)
>     invoked from within
> "_o17 cmd channel Channel/WirelessChannel"
>     invoked from within
> "catch "$self cmd $args" ret"
>     (procedure "_o17" line 2)
>     (SplitObject unknown line 2)
>     invoked from within
> "$netif channel $channel"
>     (procedure "_o13" line 98)
>     (Node/MobileNode add-interface line 98)
>     invoked from within
> "$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ 
> $ifqlen_
> $phyType_ $antType_ $errProc_ $FECProc_"
>     (procedure "_o3" line 54)
>     (Simulator create-wireless-node line 54)
>     invoked from within
> "_o3 create-wireless-node"
>     ("eval" body line 1)
>     invoked from within
> "eval $self create-wireless-node $args"
>     (procedure "_o3" line 14)
>     (Simulator node line 14)
>     invoked from within
> "$ns_ node"
>     ("for" body line 2)
>     invoked from within
> "for {set i 0} {$i < $val(nn) } {incr i} {
>                 set node_($i) [$ns_ node]
>                 $node_($i) random-motion 0              ;# disable random 
> motion
> 
>         }"
>     (file "simple-wireless.tcl" line 93)
> 
> 
> Any comments about this error? Does this mean my ns installation failed?
> PS. attachment is the source code of simple-wireless.tcl
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>