discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] FFT Plot and Benchmark


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] FFT Plot and Benchmark
Date: Fri, 31 Jul 2009 08:23:20 -0400
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

adib_sairi wrote:
Ali Siddiqi wrote:
Hi all,
I looked at fftsink_gl.py. It couldnt be executed because of import error
of
fft_window. Also, if in case I manage
to run it, still I am finding it difficult to incoporate it in
benchmark_tx.py. Can someone elaborate a bit more on how to add FFT sink
in
benchmark_tx?

Regards,
Ali


i try to work on this also but i still cannot put fftsink_nongl.py and
benchmark_tx or benchmark_rx together.. the problem i face is benchmark_*
have its own flowgraph which use .start and .wait for it to run.. i.e
tb.start and tb.wait while fftsink_nongl use stdgui2.stdapp and Mainloop to
run.. i.e
    app = stdgui2.stdapp(app_top_block, "USRP FFT", nstatus=1)
    app.MainLoop()

when i run tb.start or tb.run and tb.wait, it seem that my fftsink_nongl
that i had connect with usrp_source in the first place is stopping..
so can any body help me on combining this two system together? how to run
this two flowgraph together? what i want to do is i want to sense the
spectrum using fftsink_nongl.py and looking for spectrum hole and access the
hole by using benchmark_tx and benchmark_rx.. thank you in advance
Adib

The coupling of the flow graph and the Wx architecture was one of my motivations for writing the gr-qtgui. You should be able to "from gnuradio.qtgui import qtgui" then drop a sink (qtgui.sink_c(args)) and connect the signal block you want to observe to this sink. Remember that when you start the flow graph use "tb.start()" and not "tb.run()" and then execute the Qt application with a "qapp.exec_()", which blocks until closed.

Note that you'll have to install a few Qt-related things (Qt > 4.3, PyQt, QWT, and QWT Plot 3D). If you running Ubuntu or Fedora, these are available from your package manager.

You can find examples of how to use this in gr-qtgui/src/python with more complicated examples that allow you to build a full QT application with the sink display embedded in it. If you just use a sink and start the QApp, you just get a modal dialog box. You can have multiple QT sinks going at once, too.

Tom






reply via email to

[Prev in Thread] Current Thread [Next in Thread]