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

Re: [ns] WirelessChannel error.



Hi,

I had the same problem. The fix is simple...instead of using the parameter
-channel $val(chan)
use
-channel [new $val(chan)]

Hope this helps
Eno

----- Original Message ----- 
From: Gautam V S Gopinadhan <[email protected]>
To: <[email protected]>
Sent: Monday, November 05, 2001 7:43 PM
Subject: [ns] WirelessChannel error.


> Hi,
> I just tried running the simple-wireless.tcl script and I get the
> following error.
> 
> 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)
> 
> 
> I checked out the mailing list archives and there was one other person
> with the same problem but no response was posted. Any ideas?
> 
> Thanks,
> Gautam.
> 
> 
>