welcome yugesh,
Here a list converted into string example, we can many more using tcl
set msg1 0010101001010101010101010
set msg2 101010101010100001010
set msg1 [split $msg1 {}]
set msg2 [split $msg2 {}]
set s 0
for {set i 0} {$i < [llength $msg1]} {incr i} {
set temp [lappend temp [ex
Can any one help me with a tcl program that does XOR operation..
For example consider two variables msg1 and msg2...
set msg1 0010101001010101010101010
set msg2 101010101010100001010
Urgent
Hi Molly,
This C++ statement
> Scheduler::instance().clock()
returns the simulation time, i..e., the one you see in the trace file.
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http:/
Hi,
If you are interested in learning how tracing works in NS2, please read
http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post
The above posts are based on the normal trace. If you are interested in
wireless trace you might have to modify it a bit.
Hi Bibhu,
Link-loss model is used in a wired network. In wireless networks, you will have
to use other approach (e.g., propagation model) to impose error on the link.
Mobile node has different architecture than regular nodes. The ARQ module would
still work. But you will have to find another
Hi,
What is meaning in Ns-default.tcl (tcl\lib):LL set delay_
25us? I analyzed the trace file and found that the difference value between
the time when a packet is receive on MAC and the time when the packet is
forwarded on RTR.
Looking forward to your reply,thanks
Hi all,
I am trying to validate my simulation using coefficient of variation principles
but when I calculate the confidence interval CI, most of the results I get by
changing the seed are out from that interval. Are my results wrong?? Need all
the result to be within that interval??? Please a
Hello,
I have the following two questions regarding some flow monitor code I got from
a tutorial. Please find part of the code at the bottom.
1. I guess that "[$fcla lookup auto 0 0 $i]" takes into account each flow
separately. But why the zeros there?
2. When I run my full code, it always prin
I am trying to create a video file by the command exec ./etmp4 -p -0 sd_1
rd_1 st_a01 a01.mp4 a01e in a tcl script.
but, when I run it- the video files weren't created by the tcl script.
When I tried to run it from the console the video files were created,but
with the output "aborted" in the end
If yes can you upload the files somewhere or point me where i can
download the patch . Any ns version from ns-2.31 onwards will do.
Thanks
- Forwarded Message
From: Ehsan Chaudhary
To: ns-users@isi.edu
Sent: Sunday, May 8, 2011 12:19:11
Subject: ns2 installation error
hi everybody. i just installed ns2.34 on fedora 14, validation was perfect, and
when i try to simulate a tcl file by
% ns example.tcl
i get foll
here I attached the file. I need to read the numbers in tcl.
On Sun, May 8, 2011 at 1:47 AM, ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed <
teto...@yahoo.com> wrote:
> send the file to show and try to help you
>
> --- On *Sun, 5/8/11, Tami Nesher * wrote:
>
>
> From: Tami Nesher
> Subject: [ns] tcl: read para
this means it doesn't accept the input file sd_a01. Either you have it
under another name or you don't have it there at all. If you think
this is not the case you could try catching the error like this :
set exec_call {exec ./etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e}
set caught [catch {eval exec $
Hi,
I need to read two parameters from file and save them as two variables in
tcl script.
the file needs look like this (for example):
_: 10
_: 20
each line is one word, and I need to save the numbers.
How can I do this?
Thanks a lot if you have an answer.
thanks, it is right.
Now the problem is, that the sd & rd files were created by the tcl script.
I wrote this command (exec ./etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e) in the
proc "finish" of the tcl script.
So I got the message:
~/ns-allinone-2.34/ns-2.34/v1$ ns script1.tcl
9.9333
300 r
15 matches
Mail list logo