Hi all I am trying to get the energy consumed by a node and trying to log it into a .tr file so I could get a plot
I get all the record in the trace file using the tracefd command I have set as follow in a procedure to call every second and record the node energy set now [$ns_ now] puts $N0 "$now $node1 $energy " where $N0 is th epointer to the file to be written to Any suggestions are most welcome regards Qasim Iqbal
