2015-11-17 23 views
0

我已经做了一个.tcl文件来模拟基于闲话的Ad Hoc路由。当我尝试运行使用NS 2.35是我收到以下错误:在网络模拟器中运行tcl文件

https://drive.google.com/file/d/0B1OEPsG0ILELSHhMQzZQdW5STW8/view?usp=sharing

我将如何解决这个问题:

xgridsz=, ygridsz= 
Sim.: utime/stime: 67 10 stack/heap: -4192 4591616 
num_nodes is set 0 
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl 

couldn't read file "": no such file or directory 
while executing 
"source.orig {}" 
("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(cp)" 
(file "simAODVG.tcl" line 155) 

我的TCL文件的链接下面给出?

回答

0

线155,""

couldn't read file "" : no such file or directory

答:""在18行定义:set val(cp) [lindex $argv 1]

......和argv 1似乎在任何地方定义的?