[ns] can't read "node_(0)": no such variable
Pragasen Mudali
pmudali at gmail.com
Wed Sep 13 03:25:33 PDT 2006
I have successfully created both the scenario and the data traffic files.
When running my .tcl script I receive the error message shown below. I have
processed the scenario file before the data traffic file in my script in the
hope of the solving the problem, but have met with no success.
What should I do?
user at ubuntu:~/ns-allinone-2.29/ns-2.29/pragasen$ ns wireless.tcl
num_nodes is set 30
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
Loading scenario file...
can't read "node_(0)": no such variable
while executing
"$node_(0) set X_ 315.816127762607"
(file "scen-700x700-30-20-0.1-1" line 4)
invoked from within
"source.orig scen-700x700-30-20-0.1-1"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(sc)"
invoked from within
"if { $val(sc) == "" } {
puts "*** NOTE: no scenario file specified."
set opt(sc) "none"
} else {
puts "Loading scenario file..."
source $va..."
(file "wireless.tcl" line 281)
--
Pragasen Mudali
Research Student
University of Zululand
More information about the Ns-users
mailing list