reamining energy trace in net anim - not visible

135 views
Skip to first unread message

S Parthasarathi

unread,
Aug 26, 2016, 11:40:50 AM8/26/16
to ns-3-users
dear tomasso and other ns3 users,

i wish to get remaining energy trace in NETANIM node counters section in stats tab.

pls help me to get the trace for each and every node in simulation.

i wish to get remaining energy of each node after simulation.

regards,

parthasarathi sadhasivam.


remainingenergytrace.png

John Abraham

unread,
Sep 1, 2016, 12:02:48 AM9/1/16
to ns-3-...@googlegroups.com
Check if the remaining Energy trace is triggered for this case

For example:

ns-3-dev john$ export NS_LOG=AnimationInterface

ns-3-dev john$ ./waf --run wireless-animation &> a.out

ns-3-dev john$ grep Rem a.out 

1s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Remaining energy on one of sources on node 20: 240

1s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Total energy fraction on node 20: 0.8

2s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Remaining energy on one of sources on node 20: 180

2s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Total energy fraction on node 20: 0.6

3s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Remaining energy on one of sources on node 20: 120

3s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Total energy fraction on node 20: 0.4

4s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Remaining energy on one of sources on node 20: 60

4s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Total energy fraction on node 20: 0.2

5s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Remaining energy on one of sources on node 20: 0

5s 20 AnimationInterface:RemainingEnergyTrace(): [INFO ] Total energy fraction on node 20: 0


ns-3-dev john$ grep Rem wireless-animation.xml

<ncs ncId="0" n="RemainingEnergy" t="DOUBLE" />


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

S Parthasarathi

unread,
Sep 1, 2016, 1:10:05 AM9/1/16
to ns-3-...@googlegroups.com
Dear John Abraham,

Reamining Energy trace is Not Trigerred

this is the output that i got

parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ export NS_LOG=AnimationInterface
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ sudo ./waf --run wireless-animation &> a.out
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ grep Rem a.out
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ cat a.our
cat: a.our: No such file or directory
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ cat a.out
Waf: Entering directory `/home/parthasarathi/ns-allinone-3.25/ns-3.25/build'
Waf: Leaving directory `/home/parthasarathi/ns-allinone-3.25/ns-3.25/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (3.571s)
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ grep Rem wi
wifi-adhoc.neighbors    wifi-adhoc.routes       wifi-simple-adhoc.tr    wireless-animation.xml 
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$ grep Rem wireless-animation.xml
<ncs ncId="0" n="RemainingEnergy" t="DOUBLE" />
parthasarathi@Aspire-E5-571G:~/ns-allinone-3.25/ns-3.25$

What am i supossed to do???

Regards,
Parthasarathi Sadhasivam



You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/2XGn1MMsBvM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.

Francisco Eduardo Balart Sanchez

unread,
Feb 22, 2017, 2:59:58 PM2/22/17
to ns-3-users
John i have the same problem and have used a lot of forum discussinos in my new post can you please check it?
Reply all
Reply to author
Forward
0 new messages