Dear NS Users,
Can someone please tell me how you can retrieve the coordinates of the
network nodes from a TCL file into C++.
So is their some loop or something that can be written in C++ and
traverses all the nodes and gets X, Y, Z, and how is it written.
Hope you can help me.
Thanks,
Hi
I am using NAM to show the mobile node movement in ns2.33.
NAM is showing the moving nodes, but another initial image of the node
is also kept in the screen. can anybody tell me why? and some of the
nodes are sometimes shown in ash color, not in the default color
black.
If you know why and how
Hello Fernando,
You can use the following code:
Tcl tcl = Tcl::instance();
sprintf(tcl.buffer(), set my_tcl_var %f, 10.123);
tcl.eval();
Note that you can use the same method to execute any command on Tcl.
You can find more information in chapter 3 of the ns-manual.
Good luck
Waleed
On Tue,
Hi Samar asf,
You can use the following code to run a simple example of aodv.
# A 3-node example for ad-hoc simulation with AODV
# Define options
set val(chan) Channel/WirelessChannel;#
Hello Walid,
Thanks for the reply.
You said getting the coordinates from the TCL file easier... i have
them stored in a topography.tcl file (or so i recall) that has the X Y
Z coordinates of each sensor.
So what's the way to get them from the TCL file directly to be used in C++ ??
Thanks
--- On Mon, 19/1/09, vaishali mandhare v_mandh...@yahoo.com wrote:
From: vaishali mandhare v_mandh...@yahoo.com
Subject: Fw: Cbr traffic use in Tcp or not for MAODV
To: ns user ns-users@isi.edu
Date: Monday, 19 January, 2009, 9:16 PM
--- On Mon, 19/1/09, vaishali mandhare
Hello Manish,
My understanding is that the two parameters are not related.
Pt_ defines the amount of power transmitted from the antenna
(Phy/WirelessPhy), and thus; it defines (together with the RXThresh_
parameter) the range of the mobile-node. And it is not used by the energy
model.
txpower
In the protocol that I am currently implementing on NS2 the transmission
powers does vary a lot. Its initial implemention was done in tinyOS, and
that is why I need to simulate its available transmission powers. There is
a range of 255 possible ones in tinyOS, and I would like to change the NS
Hi,
I am using energy model in my NS simulation.
When energy trace is ON, every time the node energy changes, the trace
is generated. This makes trace file size larger. Is there any way to
generate trace of energy status of all nodes at some fixed time or
periodically?
Please inform or point
Hi all,
Can you tell me please how can I print messages written in the terminal window
during the simulation , to a text file?
Thank you for your help.
Hi users,,
Anybody can send me an example of HMIP, I'm trying to do it, but My script
don't do a handoff..,,,
My script is:
# Main Program
proc main {} {
global opt ns namtrace tracefd cn_ node_ wtopo
source /home/vinicio/ns-allinone-2.31/ns-2.31/tcl/mobility/timer.tcl
# Define
Hi ns-users,
I need help, I want use two antennas per node.
Can anyone help me?
Thanks
Avec Voila, réalisez en
toute simplicité votre videoblog ! http://video.voila.fr/mktg/?op=videoblog
Hi,
Thank you for Diana , Félix and moses who gave me the solution of printing
messages to a txt file, the solution is:
ns name_of_tclFile.tcl file.txt
Thanks.
--- En date de : Jeu 22.1.09, Nadine Chen nadine...@yahoo.fr a écrit :
De: Nadine Chen nadine...@yahoo.fr
Objet: [ns] print messages
Hi
.
I am beginner in ns2, and I want to learn it quickly because I need it in
my project. I have to simulate cooperative mac protocols. Has anyone worked
on it. If so, please help me. I want to know how to run simple IEEE 802.11b
MAC CSMA/CA DCF protocol on ns-2 so that I can start my work.
14 matches
Mail list logo