LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2014, 08:14 AM   #1
mezyana
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
problem while executing an .tcl code on ns 2.35


Hi all,
I am new to linux environemnt and learning ns2 for my final project.
i'm using ns 2.35 on ubuntu 12.04.
i have a problem while executing an .tcl file it gives me the following errors.
Quote:
num_nodes is set 30warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl


(_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 node_($i) [$ns_ node]
$node_($i) random-motion 0 ;
}"

(file "scen30.tcl" line 61)
 
Old 04-17-2014, 11:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Generic errors from an unknown file.tcl :
The errors you show in post #1 could be caused by a lot of faulty examples.tcl
There may be a solution if you attach "scen30.tcl" as : scen30.tcl.txt .
Attachments : That's the paper clip tool in the 'Advanced Editor'.

-
 
Old 04-17-2014, 05:57 PM   #3
mezyana
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
thank you for your answer Mr knudfl

i have attached the .tcl file.

hope that you can help me.
Attached Files
File Type: txt scen30.tcl.txt (6.8 KB, 21 views)

Last edited by mezyana; 04-17-2014 at 05:58 PM.
 
Old 04-18-2014, 01:15 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 : The OLSR simulation file "scen30.tcl" : OK here.

The errors in post #1 : You are probable using a wrong executable 'ns'.

The 'ns' that you have built / will build with OLSR must be copied to e.g. ns-olsr.
And : $ sudo cp ns-olsr /usr/local/bin/
... Then all OLSR simulations will run OK with : $ ns-olsr <olsr-example>.tcl

OLSR info http://www.linuxquestions.org/questions/tags/olsr/
-

P.S. : Where did you get the file.tcl ? A link, please.

-

Last edited by knudfl; 04-18-2014 at 01:25 AM.
 
Old 04-22-2014, 06:01 AM   #5
mezyana
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
hi,

i get it from my instructor, i have fix the problem with changing the routing protocol to AODV.

in my project i have to detect hidden nodes in differents scenario and topologys.

do you have an idea on how can i proceed ?.

thank you.

cordially.

---------- Post added 04-22-14 at 06:01 AM ----------

hi,

i get it from my instructor, i have fix the problem with changing the routing protocol to AODV.

in my project i have to detect hidden nodes in differents scenario and topologys.

do you have an idea on how can i proceed ?.

thank you.

cordially.
 
Old 04-22-2014, 06:50 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5 .

Google : `ns2 detect hidden nodes´
https://www.google.com/webhp?hl=all#...t+hidden+nodes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCL executing commands riotxix Programming 1 12-30-2006 12:10 AM
bash3.1 may cause tcl/tk installtion problem from source code baosheng Linux - Software 0 05-18-2006 04:13 AM
Problem in executing code in gcc gcc_learner Programming 3 03-26-2005 03:28 AM
java code executing SQL statements problem randomx Programming 1 11-09-2004 10:59 AM
Problem executing. This is not a due to code error :( estranged Linux - Software 2 09-06-2003 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration