I've already known how to use the energy model to print out the energy. Following your instructions means I have to print out the energy of all nodes at every moment of the simulation? (Because i am monitoring the number of alive nodes changing with time).
Anyway, thanks for your help. vietchau. Now I have another question. How can I measure the lifetime of the network? Is it the moment the simulation stops automatically we see in the trace file(not manually by our source code)? >From: dang vietchau <[EMAIL PROTECTED]> >To: ANH HOANG LE <[EMAIL PROTECTED]> >CC: ns-users@isi.edu >Subject: Re: [ns] the number of nodes still alive overtime. >Date: Mon, 9 Jan 2006 09:32:06 +0900 > >Using EnergyModel and count the alive nodes > > >On 1/6/06, ANH HOANG LE <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > I am running a wireless simulation with ns-2 > > > > My goal is to show the number of nodes still alive overtime. > > > > Do you know how to do this ? > > > > I would highly appreciate if you could help. > > > > Thanks, > > > > Anh > > > > _________________________________________________________________ > > Get MSN Hotmail alerts on your mobile. > > http://mobile.msn.com/ac.aspx?cid=uuhp_hotmail > > > > > > >-- >Dang _________________________________________________________________ Download MSN Messenger emoticons and display pictures. http://ilovemessenger.msn.com/?mkt=en-sg