Here we created a script to print final position of node and energy of nodes in your terminal.We hope it is useful for you all....!!!!!!
For script and details, Click here
Screenshot:
For script and details, Click here
Screenshot:
Hi All, Our website moved to a new URL. Please bookmark the new link: https://ns2bloggers.blogspot.com/
I just download the awk scripts and copy them to the directory that has the tcl script file but and when typed this in the terminal :
ReplyDelete$ gawk -f finalnodeandenergy.awk simple.tr
I got:
node no: xdir ydir zdir energy
node 0
node 1
+===========+
average energy 89.5
+===========+
total energy 179
There is no node position and no node energy why!!!
Hi, i solved the problem above just change the co ordinate values: posx[],posy[],posz[] in the print function by the original values that u placed in your tcl file :) but there is also no node energy, can i give initial values to each node energy?
ReplyDeleteI'm also solved the node energy by giving it an initial values to each node and it will compute the total energy and the average energy directly through the equations supplied in the file.awk
ReplyDeleteI wish to explain the lines of each file.awk step-by-step plz, so all users can understand what they done here
THANKS TO ALL RESPONSIBLE ON THIS BLOGGER :)
REGARDS :)
ok...thanks for your replies...description about this is already given in awk script related page..
DeleteThe link to the script isn't working! it is directing me to another post which is "AWK and PERL scripting for NS2 with scripts".PLEASE give me the link to the script of finding destination and energy of nodes. I really need it.
ReplyDeletelook on that page....
DeleteI don't want an awk script, I just need a tcl code to find the energy of nodes like the one that calculates the distance. Can you help me please! ? :)
DeleteThis comment has been removed by the author.
ReplyDelete