[ns] unable to configure mobile nodes
Marco Fiore
fl0wer at virgilio.it
Fri Apr 1 00:51:26 PST 2005
You didn't define the val(ll) variable in the previous section of your script.
Regards,
Marco Fiore
>-- Messaggio originale --
>Date: Thu, 31 Mar 2005 20:58:35 +0530
>From: Hari Prassadh <hari.mj23 at gmail.com>
>To: ns-users at ISI.EDU
>Cc:
>Subject: [ns] unable to configure mobile nodes
>Reply-To: Hari Prassadh <hari.mj23 at gmail.com>
>
>
>
>when i try to intialize mobile nodes, i get an error message in the
>node-config statement. the following is a section of the code taken
>from the in-built examples.
>
>$ns_ node-config -adhocRouting $val(adhocRouting) \
> -llType $val(ll) \
> -macType $val(mac) \
> -ifqType $val(ifq) \
> -ifqLen $val(ifqlen) \
> -antType $val(ant) \
> -propType $val(prop) \
> -phyType $val(netif) \
> -channelType $val(chan) \
> -topoInstance $topo \
> -agentTrace ON \
> -routerTrace OFF \
> -macTrace ON
>
>
>when i execute this code i get the following error :
>
>num_nodes is set 10
>can't read "val(ll)": no such element in array
> while executing
>"$ns_ node-config -llType $val(ll) \
> -macType $val(mac) \
> -ifqType $val(ifq) \
> -ifqLen $val(ifqlen) ..."
> (file "wireless.tcl" line 19)
>
>thanking u and awaiting ur response
>
>hari
>
More information about the Ns-users
mailing list