LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   HELP ME: Error while running tcl scrip for ZRP in NS2.33 ubuntu 10.04 (https://www.linuxquestions.org/questions/ubuntu-63/help-me-error-while-running-tcl-scrip-for-zrp-in-ns2-33-ubuntu-10-04-a-4175439745/)

vuichoigiaitri 12-02-2012 09:00 PM

HELP ME: Error while running tcl scrip for ZRP in NS2.33 ubuntu 10.04
 
1 Attachment(s)
thuannk@thuannk-desktop:~/NS$ ns zrp_9.tcl
num_nodes is set 100

(_o14 cmd line 1)
invoked from within
"_o14 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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 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 0} {$i < $val(nn)} {incr i} {
set n_($i) [$ns node]
#$n_($i) random-motion 0
$ns initial_node_pos $n_($i) 20
}"
(file "zrp_9.tcl" line 98)
thuannk@thuannk-desktop:~/NS$

attached files: zrp_9

knudfl 12-02-2012 10:11 PM

Please edit line 67 in zrp_9.tcl to : exec nam -r 5m zrp_9 &
Code:

$ ns-zrp zrp_9.tcl                                                                                                               
num_nodes is set 100                                                                     
INITIALIZE THE LIST xListHead                                                           
using backward compatible Agent/CBR; use Application/Traffic/CBR instead                 
                 
Start of simulation..                                                                   
SORTING LISTS ...DONE!                                                                   
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_                                   
highestAntennaZ_ = 1.5,  distCST_ = 550.0

... And nam opens OK.
( Created files : zrp_9.nam (27.2 MB), zrp_9.tr (79.4 MB) ).

Your errors : Looks like a corrupt binary 'ns'. Not all "zrp" was compiled ?
Suggest : Install the Ubuntu package zrp-ns-2.33-ubu1010_i386.deb
https://docs.google.com/open?id=0B7S...kxHY3dQQlR4bjg
Provides : /usr/local/bin/ns-zrp


New "zrp.tcl" examples : zrp-Demo1-1.tcl, zrp-Demo2-1.tcl
#10 (1) http://www.linuxquestions.org/questi...4175437365/#10
Demo2 https://docs.google.com/open?id=0B7S...E9PZW1LQTBSNWs

.


All times are GMT -5. The time now is 07:36 PM.