On 09/04/2013 9:04 SA, nitpro wrote: > I want to display the energy of a node in nsnam. I have multiple nodes and > for each node I want to display the energy. How to do this? > > > > -- > View this message in context: > http://network-simulator-ns-2.7690.n7.nabble.com/displaying-energy-as-a-text-in-nsnam-tp26596.html > Sent from the ns-users mailing list archive at Nabble.com. >
Hi nitpro, I don't know what is the "energy" that you meant (I'm new to ns2 too. Is it the transmission power?). But in nsnam you can display a label above a node, by add this command in the TCL script: $node label "thing_you_want_to_display" You can display value of a variable, or a text string, or both as the label of a node in nsnam. Best ragards,
