PyViz Visualizer

528 views
Skip to first unread message

Mukul Shukla

unread,
May 7, 2011, 9:01:53 AM5/7/11
to ns-3-users
Hi All,

Recently I have installed the PyViz as per the guidelines given in the
tutorial. I have run the example simulation "wifi-olsr-flowmon.py". I
was disappointed by the way the PyViz is designed. At first sight I
could not reveal anything from the GUI. Surely it is not comparable
with NAM (ns2) or other Animators from other simulators.

I want to know if there is any other visualizer supported in ns3? I
also want to know if PyViz will be the default simulator in ns3?

Thanking you all.

Mukul

Gustavo Carneiro

unread,
May 7, 2011, 9:31:56 AM5/7/11
to ns-3-...@googlegroups.com

I know PyViz isn't perfect, but lack of time prevents me from resuming active development :-(  Still, many people seem to find it useful, that's why it was included in ns-3.  Also because its source code is small, and dependencies are all runtime.  

I don't think there's any decision to make PyViz "default", whatever that means.  In fact, parts of the NetAnim are included in ns-3 also (the parts that capture data into an animation trace file).  Between NetAnim and PyViz, we hope to find additional community contributions to improve them, depending on each developer's toolkit and programming language of choice.


Thanking you all.

Mukul

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert

Gustavo Carneiro

unread,
May 7, 2011, 10:41:59 AM5/7/11
to ns-3-...@googlegroups.com
On Sat, May 7, 2011 at 14:59, Mukul Shukla <mukulr...@gmail.com> wrote:
Hi All,

Is there any tutorial on how to use PyViz? For what type of
experiments PyViz can be used? At present I could not find the proper
use of PyViz. Can network dynamics by seen using PyViz?


You can see arrows with bitrates, varying over time.  You can see how wireless nodes associate to APs and move.  You can even drag nodes yourself, with the mouse, which I'm sure none of the other visualizers allows! ;-)

I am not sure what you mean by "network dynamics". If you mean draw plots, no, PyViz does not do plots atm.

 
Thanks

Mukul

On May 7, 6:31 pm, Gustavo Carneiro <gjcarne...@gmail.com> wrote:
> INESC Porto, UTM, WiN,http://win.inescporto.pt/gjc

> "The universe is always one step beyond logic." -- Frank Herbert

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Andre

unread,
May 8, 2011, 4:44:53 AM5/8/11
to ns-3-users
Hi to All ;^)

To Mr. Gustavo:
I recently pull the current ns-3-dev available in the hg repos but
after i build it my ns-3-dev (I don't know if I should) I cannot run
the python bindings.
When I run the command:
./waf -d debug --enable-examples --enable-tests configure
I got the result:
pybindgen (found 0.15.0), (need 0.15.0.785) for the pybindgen bindings
part.

How should I pull the newest version of pybindgen?
Thank you for your cooperation ;^)

Re


On May 7, 10:41 pm, Gustavo Carneiro <gjcarne...@gmail.com> wrote:

sanjeev prasad

unread,
May 9, 2011, 12:52:58 AM5/9/11
to ns-3-...@googlegroups.com
you can use mathieu NS3-NAM package

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.




--
Sanjeev K. Prasad
Assistant Professor 
MCA Dept.
AKGEC, GZB
Mob. 09711117484

Andre

unread,
May 10, 2011, 9:16:44 AM5/10/11
to ns-3-users
Hi All :^)

1) About the problem that I mentioned, I solved it usibg this command:

<i>bzr checkout -rrevno:785 https://launchpad.net/pybindgen
pybindgen<i/>

Waf everything else and everything is back to normal. It waf simply
magic.

2. But there is another problem. When I run the usual wifi-olsr-
flowmon.py, I got this as a result:

<i>scanning topology: 0 nodes...
scanning topology: calling graphviz layout
/usr/lib/pymodules/python2.6/pygraphviz/agraph.py:1138:
DeprecationWarning: os.popen3 is deprecated. Use the subprocess
module.
child_stdin,child_stdout,child_stderr=os.popen3(cmd, 'b')
scanning topology: all done.
Traceback (most recent call last):
File "/home/sly/repos/ns-3-allinone/ns-3-dev/src/visualizer/
visualizer/core.py", line 1131, in autoscale_view
min_x, min_y = min(x for (x,y) in positions), min(y for (x,y) in
positions)
ValueError: min() arg is an empty sequence<i/>

Gustavo Carneiro

unread,
May 10, 2011, 9:45:01 AM5/10/11
to ns-3-...@googlegroups.com
On Tue, May 10, 2011 at 14:16, Andre <reand...@gmail.com> wrote:
Hi All :^)

1) About the problem that I mentioned, I solved it usibg this command:

<i>bzr checkout -rrevno:785 https://launchpad.net/pybindgen
pybindgen<i/>

Waf everything else and everything is back to normal. It waf simply
magic.

2. But there is another problem. When I run the usual wifi-olsr-
flowmon.py, I got this as a result:

<i>scanning topology: 0 nodes...
scanning topology: calling graphviz layout
/usr/lib/pymodules/python2.6/pygraphviz/agraph.py:1138:
DeprecationWarning: os.popen3 is deprecated.  Use the subprocess
module.
 child_stdin,child_stdout,child_stderr=os.popen3(cmd, 'b')
scanning topology: all done.
Traceback (most recent call last):
 File "/home/sly/repos/ns-3-allinone/ns-3-dev/src/visualizer/
visualizer/core.py", line 1131, in autoscale_view
   min_x, min_y = min(x for (x,y) in positions), min(y for (x,y) in
positions)
ValueError: min() arg is an empty sequence<i/>

I pushed a fix for this error.

Basically it happens if there are no nodes in the simulation (!).  Why pyviz is not detecting nodes in the simulation, I cannot say...



--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc

sanjeev prasad

unread,
May 11, 2011, 1:17:43 AM5/11/11
to ns-3-...@googlegroups.com
What command are u using for run wifi-olsr?

Andre

unread,
May 15, 2011, 6:29:43 AM5/15/11
to ns-3-users
Hi Sanjeev
Thank you for the interest. I really appreciate it.
The command that I used is:
<i>./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --vis</
i>

Hello Gustavo
I think what might lead to the missing node is inconsistencies that
happened when I oulled the latest ns-3.
When I deleted and pulled a new ns-3-dev folder it works fine.

Thank you all so much. Thanks :^)

On May 11, 1:17 pm, sanjeev prasad <sanjeevkps2...@gmail.com> wrote:
> What command are u using for run wifi-olsr?
>
>
>
>
>
>
>
>
>
> On Tue, May 10, 2011 at 6:46 PM, Andre <reandre8...@gmail.com> wrote:
> > Hi All :^)
>
> > 1) About the problem that I mentioned, I solved it usibg this command:
>
> > <i>bzr checkout -rrevno:785https://launchpad.net/pybindgen

sanjeev prasad

unread,
May 15, 2011, 10:54:29 AM5/15/11
to ns-3-...@googlegroups.com
your command is right. What problem u r facing tell me.
bye

Mukul Shukla

unread,
May 7, 2011, 9:59:26 AM5/7/11
to ns-3-users
Hi All,

Is there any tutorial on how to use PyViz? For what type of
experiments PyViz can be used? At present I could not find the proper
use of PyViz. Can network dynamics by seen using PyViz?

Thanks

Mukul

On May 7, 6:31 pm, Gustavo Carneiro <gjcarne...@gmail.com> wrote:
> INESC Porto, UTM, WiN,http://win.inescporto.pt/gjc
Reply all
Reply to author
Forward
0 new messages