What do I do with this huge data on my command line interface
Hi,
I have been trying to get information on how to process the output of a tcl file (aodv and leach protocol using mannasim) which I got on my command line Iinterface. Actually, I don't even know the keywords to search as I am new to this and other minor attempts haven't yielded positive results., I know there is usually a trace file but I can't see any. All I see is on my command line. I also observe that it took the space on the entire screen and I can't copy the output from the start ( I could only copy from node 19 out of 30 nodes) because of the huge number of output lines. The last thing I havent been able to figure ou is whether temperature is equivalent to energy Iin mannasim as mannasim has only temperature and carbon dioxide? Thanks |
If you want to dump the output of a command to a file instead of printing it on the screen, use ">". eg:
Code:
ls > file |
Thanks for the response, it was quite beneficial and I was able to get it into a file.
However, please I dont know the most appropriate trace analyzer to use as it seems different from other trace files I have seen. I already attempted to use trace graph. This is a sample of what I got The first part looks like this: * Node 1 = 1 created in (24.69199808532931, 40.81560109779965, 0.0) * Node 2 = 2 created in (72.50801342190617, 37.513115833286712, 0.0) * Node 3 = 3 created in (74.934853555138631, 67.811206992627689, 0.0) The second looks like this: Node 10 - Temperature Data 18.368035 - Time 0.085450 Common Node 10 - Disseminating data - Time 0.085 - Destination node 0 Node 11 - Temperature Data 26.870198 - Time 0.085450 Common Node 11 - Disseminating data - Time 0.085 - Destination node 0 I am concerned about the best tool plotting the graph of the energy with respect to time. Thanks |
I;d suggest using awk or perl to get the data into a simple two-column format (first column time and second column energy). Then you can use any number of plotting tools to make a graph. I use pyplot a lot myself, but it requires knowledge of Python. You could also use gnuplot, which is still fairly complex but does not require any real programming.
|
i am guessing that this is one of the ns2????? versions
What does your textbook have to say on this issue ? for plotting GNUplot should be installed by default |
All times are GMT -5. The time now is 01:35 AM. |