I am using Mannasim Leach implementation for my work. And there I want to trace the node energy and want to print it on terminal. A u said that it is possible to read it in mit implementation. I also heard about some function but don't know exactly to read node energy in ns2. I want to read node energy from the time of simulation starts to end of simulation. and wanted to print all.
On Sat, May 8, 2010 at 1:11 PM, tarik tarik <[email protected]> wrote: > Hi, > please can you explain you probleme exactly. > if you use MIT imlementation of Leach you can find the current energy with > (initial energy - expended_) > expended is defined in energy.cc and binded with expended in tcl file > Tarik > > 2010/5/8 ashish mohta <[email protected]> > > >> Hi, >> I am working on Leach protocol. and need to find the nodes energy in its >> gcc >> files from trace file. Please help me to find nodes current energy at >> runtime from its tcl script to ".cc" file. i tried some function but i am >> getting initial energy of node but not updated energy. >> Thanks >> Ashish >> > >
