Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-30 Thread Mathiew Moussa
Hi Samira, I had the same question and i got the following reply from Mr. Keven Sheth that turned out to be useful. What he answered specifically is how to calculate the distances between to nodes, which uses the coordinates of the nodes by accessing them from struct mb_node in file

[ns] how to change node color

2009-01-30 Thread Mirza Naveed Baig
Dear All     I am using following code but its not working   $node color Red   also tried   $node color red   both of above not working and there is no error as well.   Whats the proper way to change node color,please help.   Best Regards  

[ns] Sending data to a specific port of a node in ns2

2009-01-30 Thread Syed Faraz Hasan
Hi everyone! How can I send data to a specific port on a node in ns-2.33? I recently declare nodes and send data among them, is there any way to send data to a certain port of a node? Please reply back soon. Faraz

[ns] Directional Antenna (smart antenna)

2009-01-30 Thread Green Tea
Hi, Is there any Directional Antenna (or smart antenna) implementation publicly available? I read several papers saying that they have implemented their ideas in NS2 but all I could find is a few outdated and broken links. I am trying to implement my ideas on directional antenna (for Mesh or

[ns] Parsing Trace File

2009-01-30 Thread Arslan Munir
Hi all, I want to parse some of the columns in the trace file i.e. only want some columns from the trace file. Does any body already has a python script written for that? Please share it with me. Thank you very much! Regards, Arslan

[ns] xgraph cannot open display

2009-01-30 Thread eng Rony
Eng Rony hi all, I'm having some problems while I'm=A0trying to run the example4(about xgrap= h) in section VIII from Marc Greis' tutorial. when I was trying to=A0run the example by g= iving the command ns=A0example4.tcl it's saying that: xgraph: cannot open display i use cygwin,ns2.29. how can

[ns] CBR maxpkts and interval

2009-01-30 Thread Syed Faraz Hasan
Hi, How can I set a limit of maximum no of packets to be sent from a node in CBR traffic. It is $cbr set maxpkts_ 20 (I think) but it is not working. Even after setting a fixed no of packets for transmission, I see more packets flowing from source to destination. Can some one help me please?

[ns] sample code for wsn

2009-01-30 Thread naveen prabu
I have pasted sample tcl file and scenario file here... save scn file as wsn1.scn and tcl file as (say)wsn1.tcl and run tcl file... try runnin thisif any bugs then let me know... wsn1.tcl # == # Define options #

[ns] how to draw xgraph from tae trace file

2009-01-30 Thread naveen prabu
please tel me how to draw the xgraph from trace file.?