Re: [ns] Syntax error using rtmodel-at

2007-02-11 Thread Filippos Kolovos

-
It does not have to do with the command that you give in the
tcl script, but with the generated command produced by the
$ns namtrace-all $filedesc tcl command, which gets written to a
file pointed by $filedesc.

The syntax of this command in the NAM file) is what has changed in later
versions
of NAM and as NAM reads the file while displays the simulation on the
screen, it notifies of the obsolete syntax. However, this is only a warning
and not an error, since it still interprets the command.

On the other hand, such a command does not exist for the NS interpreter,
and this is why the script crashes when you use it. It is merely a NAM
issue,
for which I wouldn't worry too much.

-Fk

On 2/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 -- Forwarded message --
 From: Onyekachi [EMAIL PROTECTED]
 To: ns-users@ISI.EDU
 Date: Sat, 10 Feb 2007 15:57:39 -0500
 Subject: [ns] Syntax error using rtmodel-at command
 Hi All,
 I tried to use the network dynamic command

 $ns rtmodel-at 1.0 down $n(1) $n(2)
 $ns rtmodel-at 2.0 up $n(1) $n(2)

 to fail and recover a link. But when i ran the tcl script, i got the
 following message:

 Nam syntax has changed: v -t 2 link-up 2 2 1
 Please use this format in the future.
 v -t time -e tcl expression

 I then changed the syntax to
 v 1.0 link-down 1 2
 v 2.0 link-up 1 2.

 The result i got was this:
 $ ns new3.tcl
 invalid command name v
 while executing
 v 1.0 link-down 1 2
 (file new3.tcl line 50)

 Please can someome tell me what I am doing wrong?
 Regards.

 Onyekachi.




-- 
Filippos N Kolovos

Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
--


[ns] commands creation problem

2007-02-11 Thread safaa matter

how to write new tcl command in the TCL file and make implementation to it the 
C++ files?
the problem is that i don`t know which C++ file that i modify.

thanks;


[ns] Change Initial Size Of CTS(clear To send)

2007-02-11 Thread hamid reza

Dear Ns Users,
I want to change the initial Size of CTS From 14 to
17.
can you do this work on NS2.27?

Best Regards
Hamid Reza



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com



Re: [ns] ns-2.30 installation problem

2007-02-11 Thread vava vvava


I having problem installing ns-2.30.
I run make after ./configure 
Lots of stuff running until at the end of of the line, this error 
display:

make: *** No rule to make target `VERSION', needed by `gen/version.c'.  
Stop.

what does it mean?
I am very new to linux.
I am using ubuntu 6.06 base and g++ 4.0 compiler.

 
-
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.


Re: [ns] commands creation problem

2007-02-11 Thread Scott Ricketts

The NS manual has a pretty good section on Otcl/C++ linkage, which
should be able to help answer your question. In general there is a
corresponding C++ object for each Otcl object you create in your
script. You can grep the source code for the Otcl name, like
Agent/UDP.

Scott

On 2/11/07, safaa matter [EMAIL PROTECTED] wrote:

 how to write new tcl command in the TCL file and make implementation to it 
 the C++ files?
 the problem is that i don`t know which C++ file that i modify.

 thanks;