Try:
Tcl tcl = Tcl::instance();
tcl.evalf(puts [$ns now]);
Try printing the graph into a ps file.
The problem is that the path of xgraph is not included in your PATH
variable. There are two solutions. One is adding the path to your PATH
variable. You can do so by adding a line similar to PATH=~/ns-allinone-2.29
/xgraph-12.1:${PATH} to the file .bash_profile. Of course, ~/ns-
There is a method I know but it is at MAC level, so I don't know whether it
will help. Since you are working on dsr, I guess you are using WirelessPhy
as the physical interface. The class energy_model has a list of neighbors,
namely neighbor_list, and WirelessPhy has a member of type
Hello everyone,
I am trying to simulate CAP-SV routing protocol for ad hoc networks,
derived from AODV. I need to control the transmission power of each
node and vary it according to the next hop since my protocol logs the
min. power to reach each neighbor. Is there anyone who knows how to