Re: [ns] tcl: read parameters form file

2011-05-17 Thread Tami Nesher
I change the line* puts $tcpFallowUDP* to *puts* * lindex $tcpFallowUDP 0 *in order to print the first argument in the list and I got this error:* * ~/ns-allinone-2.34/ns-2.34/v1/input$ ns input02.tcl bad argument 0: should be nonewline while executing puts lindex $tcpFallowUDP 0 (file

Re: [ns] tcl: read parameters form file

2011-05-17 Thread Tami Nesher
OK I found the problem. I should write: *puts* * [lindex $tcpFallowUDP 0]* Thank you. 2011/5/17 Tami Nesher vessely...@gmail.com I change the line* puts $tcpFallowUDP* to *puts* * lindex $tcpFallowUDP 0 *in order to print the first argument in the list and I got this error:* *

[ns] tcl : create nodes

2011-05-17 Thread Tami Nesher
Hi, How can I create nodes according to a variable number? I mean : I have a variable that contains the number of nodes that I need to create. How can I do it?

Re: [ns] tcl: read parameters form file

2011-05-17 Thread мαłłi
yes Tami, the square brackets are used to variable substitution, similar to = sign. 2011/5/17 Tami Nesher vessely...@gmail.com OK I found the problem. I should write: *puts* * [lindex $tcpFallowUDP 0]* Thank you. 2011/5/17 Tami Nesher vessely...@gmail.com I change the line* puts

Re: [ns] tcl : create nodes

2011-05-17 Thread мαłłi
Tami, What I understand you question is you have an variable, based on that you need to create that much of users? Ex. set s 10 for {set i 0} {$i 10} {incr i} { set n$i [$ns node] } On 17 May 2011 15:43, Tami Nesher vessely...@gmail.com wrote: Hi, How can I create nodes according

Re: [ns] ffmpeg installation under Linux

2011-05-17 Thread мαłłi
Tami, http://ubuntuforums.org/showthread.php?t=786095 go though this link i hope that will help, On 15 May 2011 18:37, Tami Nesher vessely...@gmail.com wrote: Hi, I need to install ffmpeg on Ubuntu in order to do this: ./ffmpeg -i a01e.mp4 a01e.yuv I got the error that there is no file

Re: [ns] tcl : create nodes

2011-05-17 Thread Tami Nesher
Thank you for all answers. 1. Did you mean to write like this?(with s) set s 10 for {set i 0} {$i *$s*} {incr i} { set n$i [$ns node] 2. I want also to create* links* between the nodes, to *attach agents(tcp or udp)* and *start them*. I need to do everey thing in the same way, with

[ns] [very urgent] error when installing the IEEE 802.p package (serbrook uni)

2011-05-17 Thread chadi jabroun
Hi I'm trying to integrate the IEEE 802.11p package developed by sherbrook university . please could any body help me? I get the following error when I do: make -- In

Re: [ns] can not change RED to original form (without gentle)

2011-05-17 Thread Mohit Tahiliani
Dear Aquila, Following are the parameters you need to set to simulate Original RED (1993 paper by S. Floyd and Van Jacobson): Queue/RED set thresh_ 5 Queue/RED set maxthresh_ 15 Queue/RED set q_weight_ 0.001 Queue/RED set bytes_ false Queue/RED set queue_in_bytes_ false Queue/RED set gentle_

Re: [ns] HOW TO GET THE POSITION OF NODE IN C++ CODE ??

2011-05-17 Thread Mohit Tahiliani
Hello, Please see the link below. It explains how to obtain a node position as well as energy. http://elmurod.net/?p=348 Hope it helps. Regards, Mohit P. Tahiliani

[ns] Deadline Extension: The 4th IEEE International Conference on Cyber, Physical, and Social Computing

2011-05-17 Thread Jaime Lloret Mauri
[Submission deadline is extended to 31 May] [Please accept our apologies if you received multiple copies of this call] [Call for Papers] -- CPSCom 2011

[ns] Modify cbr traffic

2011-05-17 Thread Aayushi Shashi
Hi everybody, I'm trying to implement a geocast protocol for manets. I need to send traffic for a geographic region. I mean, I'd like to do this: set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 0.1 $cbr_(0) set random_ 2112 $cbr_(0)