Stuck on to make Gnuplot (.plt) file

217 views
Skip to first unread message

Md.Raihan Ali

unread,
Dec 15, 2017, 6:27:04 AM12/15/17
to ns-3-users
Dear Honorable Group Members,

I am trying to test adhoc network with ns2mobility nodes where I am using existing example file to extract some network metrics. Above all, I have extract some metrics by flow monitor but i can not make a gnuplot graph for last week. I saw different email in this group on that issue but i could not find proper way. Now, I am totally stuck to create gnuplot so, My dear group members, Give me solution or coding guidelines on that purpose. Because, For your suggestion will be  moved forward. please check  my attachment file.  I would like to make two kinds of graph 

1. Different network metrics vs Time
2.Different network metrics parameters in a single .png file.

Regards,
Ali
adhocsim1.cc

Tommaso Pecorella

unread,
Dec 17, 2017, 7:24:43 AM12/17/17
to ns-3-users
Hi,

you need to attach also scratch/ns2mobility.tcl. Otherwise it's hard to test the script...

T.

Md.Raihan Ali

unread,
Dec 17, 2017, 9:46:19 AM12/17/17
to ns-3-users
Dear Sir,

Thank you for your reply.Now, I have attached both  file on regarding this issue.please sir, check and then send me the source, how to create both types of graph on that issue.

Regards,
Ali    
ns2mobility.tcl
adhocsim1.cc

Tommaso Pecorella

unread,
Dec 17, 2017, 7:56:10 PM12/17/17
to ns-3-users
Hi,

I commented some stuff and added some more.
Please note that I had to use a global variable, which is damn ugly. However there's a glitch in using references and Schedule that I wasn't able to bypass. I'll have to dig more on it, but not right now.

Warning: all your graphs are zero. This is NOT my problem and it probably depends on your mobility model (perhaps your nodes are too far away and the network is not connected).

T.
adhocsim1.cc

Md.Raihan Ali

unread,
Dec 17, 2017, 11:37:57 PM12/17/17
to ns-3-users
Dear sir,

Thank you so much for your worthy support. Now, I am checking... I will know you (sir) later. Please let me know dig more. I am waiting for your more comment about on this issue. 

Regards
Ali

Md.Raihan Ali

unread,
Dec 18, 2017, 7:53:28 AM12/18/17
to ns-3-users
Dear Sir,

I can not solve the problem on previous way. Now, I have seen another way to create Gnu plot on this issue but i do not know how to call this Gnu plot function so please give me guideline on that issue. Still, I can not move forward. When i run this code it's show me that the flow monitor result . so, how could i make the Gnu plot regarding the issue. Check the attachment file. 

Regards,
Ali
adhocn.cc
ns2mobility.tcl

Md.Raihan Ali

unread,
Dec 24, 2017, 8:19:06 AM12/24/17
to ns-3-users
Dear Sir( Tommaso Pecorella),

First of all, I would like to say thank you so much . Finally,  your guideline and worthy support  was very helpful for me which extracted my first experimental work . Now, I have made different gnuplot like as: throughput,pdr and delay. Sir, Thanks once more time.

Regards,
Ali  
throughput-graph.png
Delay-graph.png

we can toghether

unread,
Apr 23, 2018, 1:22:19 PM4/23/18
to ns-3-users
hi am martha ..actually am having the same problem as yours and am glad you did figure it out ,am trying to test the same parameters (delay and the flow ) by varing the number of UE in lena-epc.cc and it generate txt files but i dont know how to make a graph of them , am stuck for days searching
i'll appreciate your help  

MD. ANAMUL HASAN RONY 1804118

unread,
Apr 6, 2024, 4:21:18 AM4/6/24
to ns-3-users
Dear sir(Md.Raihan Ali),
Can you please send me your throughput vs time calculation code and plotting codes ?  It would be helpful. I am stuck on same things.

Regards,
Anamul
Reply all
Reply to author
Forward
0 new messages