LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Getting the remaining energy in nodes in ns2 (https://www.linuxquestions.org/questions/linux-networking-3/getting-the-remaining-energy-in-nodes-in-ns2-4175531437/)

Zahraa Ayad 01-18-2015 01:02 PM

Getting the remaining energy in nodes in ns2
 
How can i get or calculate the remaining energy in each node during the simulation in ns2? (using TCL only, not by using C++)...
i want to pass it to a variable and use it through my tcl code.
Can you help me?

TB0ne 01-19-2015 09:44 AM

Quote:

Originally Posted by Zahraa Ayad (Post 5303022)
How can i get or calculate the remaining energy in each node during the simulation in ns2? (using TCL only, not by using C++)...
i want to pass it to a variable and use it through my tcl code.
Can you help me?

Yes, we can help you. Post the code that YOU have written, and tell us where you're stuck. We will be happy to assist, but we're not going to write code for you.


All times are GMT -5. The time now is 07:38 PM.