Dear NS-2 Users,
I have made a simulation in NS-2 and want to plot a graph by xgraph. But it always gives me the error given below: . . . . Error in file `third.tr' at line 8971: Unknown line type Error in file `third.tr' at line 8972: Unknown line type Error in file `third.tr' at line 8973: Unknown line type Error in file `third.tr' at line 8974: Unknown line type Error in file `third.tr' at line 8975: Unknown line type Error in file `third.tr' at line 8976: Unknown line type Error in file `third.tr' at line 8977: Unknown line type Warning: cannot open file `800x600' Problems found with input data. I have searched on the web including ns-2 forum but no satisfactory answer is available. All I could get from some of the posts on the forum was that I need to parse the output trace file and then produce the graph. I do not want to go into awk and pascal scripting. How can I get the parse the file using xgraph. The .tcl file is attached http://www.nabble.com/file/p26073666/practice.tcl practice.tcl along with this email. Please see the code given in the file for details and tell me where am I going wrong. I have already tried using proc record {} in the code, but I think it does now parse the trace file. How do I generate the graph using xgraph... Can ant please help me with this.... I am stuck up... ----- Regards, Bilal A. Khan -- View this message in context: http://www.nabble.com/how-do-I-parse-the-trace-file-for-xgraph--tp26073666p26073666.html Sent from the ns-users mailing list archive at Nabble.com.
