我的Blackhole-AODV程序在以前運行平穩,沒有錯誤,並且我記錄了很多次。來自模擬的結果。但安裝xgraph後(我認爲在xgraph中繪製結果會很好,而不是手動),我的程序停止工作。它顯示了一些長時間的錯誤,我不知道如何解決它。請幫我試圖找到淨許多解決方案(有同樣的問題,但到處都是無解!)下面給出的錯誤: -在ns2中執行tcl文件時出錯
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
(_o872 cmd line 1)
invoked from within
"_o872 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o872" line 2)
(SplitObject unknown line 2)
invoked from within
"_o872 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
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 $val(nnaodv) } {$i<$val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 1;
$node_($i) color red
$ns_ at 0.0 "$nod..."
(file "atk20.tcl" line 69)