LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2014, 04:25 AM   #1
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Smile how to put the command in nam window, while executing ns2 code


Hi dudes,

i am using ns-2.35 writing code in tcl, in nam window, apart from nodes , i need to display some commands on executing it in nam

i want syntax in tcl how to put commands to be displayed in nam window.
Thanks

Pon
 
Old 11-18-2014, 07:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
The "nam animator" displays a "nam trace file"
. http://www.isi.edu/nsnam/nam/
. https://www.google.com/webhp?hl=all&...q=nam+animator

Tcl example :
Code:
.
.
set f [open out.tr w]
$ns trace-all $f
set nf [open out.nam w]
$ns namtrace-all $nf
.
.
.
$ns at 30 "finish"
proc finish {} {
global ns f nf
$ns flush-trace
close $f
close $nf
exec nam out.nam &
exit 0
}

$ns run
 
Old 11-18-2014, 08:05 AM   #3
pon
Member
 
Registered: Aug 2014
Posts: 77

Original Poster
Rep: Reputation: Disabled
Smile

in this attached nam window screen shot , below time scale i need some commands to be displayed. i ve seen somewhere but i forget.
Attached Thumbnails
Click image for larger version

Name:	ontology.png
Views:	21
Size:	94.1 KB
ID:	16886  
 
Old 11-18-2014, 09:46 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
← #1, #3.

I don't know about "adding a command".
You can add a text to nam.

Example http://mohittahiliani.blogspot.in/20...k-in-ns-2.html
. http://www.mediafire.com/view/0f40bf.../blackhole.tcl


-
 
  


Reply

Tags
nam, ns2, tcl-ns2


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
NS2.31 NAM problem - "[code omitted because of length]" shoosh Linux - Newbie 3 11-17-2015 07:41 AM
ns: stop: couldn't execute "nam": permission denied while executing "exec nam Niraj Mishra Linux - Newbie 1 11-08-2014 07:57 AM
[SOLVED] error while executing nam in ns2.34 on ubuntu 10.04 Aska123 Linux - Software 2 04-12-2013 07:04 AM
RCP implementation over ns2.30, Getting error on executing ns command. bhargavigoswami Linux - Networking 4 11-25-2012 10:07 PM
nam window is not display in ns2 pratapmeher Linux - Newbie 7 10-21-2010 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration