Execute a simulation file from python script

156 views
Skip to first unread message

mand...@gmail.com

unread,
Sep 24, 2018, 11:01:44 PM9/24/18
to ns-3-users
Hi team,

I need to execute the aodv.cc file using a python file. So, is there any way to call that simulation file and execute through the python file?

Thanks & Regards,
Mandula.

shiren ahmed

unread,
Sep 25, 2018, 5:06:28 AM9/25/18
to ns-3-...@googlegroups.com
hi, i found this is command in  document you can try that
./waf --pyrun examples/wireless/mixed-wireless.py

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
ns-3-training-session-1.pdf

mand...@gmail.com

unread,
Sep 26, 2018, 1:36:37 AM9/26/18
to ns-3-users
I know the command to execute a python file in ns-3. What I need was how to execute the entire aodv.cc file by executing a python script. I mean in the python file/script, anyone knows the python code to call that entire simulation file and execute it using one or two lines of code. I could see some sample python files which are capable of executing other simulation files (not aodv.cc) by converting cc code in the simulation file to python. But I couldn't find sample files such as adov.py. When I am trying to convert such aodv.cc files to python, it was a hard task because conversions of some methods were seemed like impossible. So any help would be highly appreciated. 

shiren ahmed

unread,
Sep 26, 2018, 5:08:09 AM9/26/18
to ns-3-...@googlegroups.com
oh,sorry i'm begginner in ns3

--
Reply all
Reply to author
Forward
0 new messages