- ›
- Forums ›
- Get Help and Guidance on Cygwin and ns2 ›
- measuring battery power of nodes in ns2
Keymaster
Learn about Energy Model from ns2 manual. While using Energy Model in a ns2 simulation, the following line can be used to get Energy of the node
set RemainingEnergy [$node(1) energy]
The variable RemainingEnergy will contain the value.
Discuss Through WhatsApp