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

[ns] [HELP] wireless simulation problem



Hi,
I am writing a script for wireless simulation (see attached file) and
encounter the following error:

can't read "Node_(2)": no such element in array
    while executing
"set Node_($id)"
    (procedure "_o3" line 3)
    (Simulator get-node-by-id line 3)
    invoked from within
"$self get-node-by-id [lindex $L 1]"
    (procedure "_o3" line 19)
    (Simulator compute-hier-routes line 19)
    invoked from within
"$self compute-hier-routes "
    (procedure "_o3" line 4)
    (Simulator compute-routes line 4)
    invoked from within
"$ns compute-routes"
    (file "./clepMir.tcl" line 178)

while executing.

The problem comes from line 111 with the instruction:
	$ns_ node-config -wiredRouting OFF -routerTrace OFF
if I keep wiredRounting ON (or OFF) for all nodes creation, everything is
OK.

Can anybody help me with this one ?

Regards

-- 
Lucas Barri�re

[email protected]
http://aemiaif.lip6.fr/etudiants/lucas
UNIX is user-friendly. it's just selective about who its friends are.

clepMir.tcl