Hi All, Our website moved to a new URL. Please bookmark the new link: https://ns2bloggers.blogspot.com/

Saturday 10 May 2014

SCRIPT TO FIND DESTINATION AND ENERGY OF NODES

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:




8 comments :

  1. 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 :

    $ 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!!!

    ReplyDelete
  2. 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?

    ReplyDelete
  3. I'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

    I 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 :)

    ReplyDelete
    Replies
    1. ok...thanks for your replies...description about this is already given in awk script related page..

      Delete
  4. The 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.

    ReplyDelete
    Replies
    1. I 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! ? :)

      Delete
  5. This comment has been removed by the author.

    ReplyDelete