Re: [ns] Error when simulating the generated files from "cbrgen.tcl" and "setdest"

2007-07-13 Thread Hai T. Vu

Based on the error:
can't read "topoInstance_": no such variable
while executing
"$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_
$ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_

I guess that you did not creat an area so that the mobile node will be able
to move around. The code to create area follows.

# Create a topology
set topo [new Topography]
$topo load_flatgrid 2000 2000

Hope this might help.

Hai.

On 7/13/07, RC Loh <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am using the programs, "cbrgen.tcl" and "setdest" provided in NS2 to
> generate  wireless scenarios. However, when I run the "tcl" file using "ns
> x.tcl", it gave the following error messages. Anyone knows what is
> wrong with my program?
>
> Thanks in advance.
>
> Rdgs,
> Rachel.
>
>
> =
> [EMAIL PROTECTED] NS2_programs]$ ns wireless-20.tcl
> num_nodes is set 20
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> can't read "topoInstance_": no such variable
> while executing
> "$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_
> $ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_ $outerrProc_
> $FECProc_"
> (procedure "_o3" line 70)
> (Simulator create-wireless-node line 70)
> invoked from within
> "_o3 create-wireless-node"
> ("eval" body line 1)
> invoked from within
> "eval $self create-wireless-node $args"
> (procedure "_o3" line 23)
> (Simulator node line 23)
> 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 "wireless-20.tcl" line 60)
> [EMAIL PROTECTED] NS2_programs]$
>
>
>
>
>
>
> 
> Yahoo! Singapore Answers
> Real people. Real questions. Real answers. Share what you know at
> http://answers.yahoo.com.sg
>


[ns] Error when simulating the generated files from "cbrgen.tcl" and "setdest"

2007-07-13 Thread RC Loh

Hi,

I am using the programs, "cbrgen.tcl" and "setdest" provided in NS2 to generate 
 wireless scenarios. However, when I run the "tcl" file using "ns x.tcl", 
it gave the following error messages. Anyone knows what is wrong with my 
program? 

Thanks in advance.

Rdgs,
Rachel.
 
=
[EMAIL PROTECTED] NS2_programs]$ ns wireless-20.tcl
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
can't read "topoInstance_": no such variable
while executing
"$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ 
$ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 70)
(Simulator create-wireless-node line 70)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
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 "wireless-20.tcl" line 60)
[EMAIL PROTECTED] NS2_programs]$ 






 
Yahoo! Singapore Answers 
Real people. Real questions. Real answers. Share what you know at 
http://answers.yahoo.com.sg