discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Custom gnuradio GUI for OOT blocks


From: Laura Arjona
Subject: Re: [Discuss-gnuradio] Custom gnuradio GUI for OOT blocks
Date: Mon, 11 Mar 2019 09:42:41 -0700

Thank you very much Marcus, I do appreciate your help,  I only have experience with GUIs in android .

The big picture is to change the behavior of the OOT blocks based on the user input; and the user interacts with the system using widgets (buttons, edit texts, etc)  

You were right, I don't need to recompile the C++ code, I didn't think it properly.

To give you an example of what I want to do, let's say I have a transmit block named myBlock (oot block, c++), which has a function f, and that function, has a parameter int n.
Then, I have a main.py file, which launches the application (consisting of several connected blocks), with a declaration of that block
    self.myBlock   =  myModule.myBlock()

I want to launch the main.py using a GUI by pressing a button, and selecting the parameters of the function f. These parameters should be selected with widgets (buttons or some other)

Also, which widgets are possible to use? (buttons, editText, etc)


I looked at the documentation, but it is only about blocks for plotting
https://www.gnuradio.org/doc/doxygen-3.7.2/page_qtgui.html



On Mon, Mar 11, 2019 at 1:09 AM Müller, Marcus (CEL) <address@hidden> wrote:
Hi Laura,

first: Don't use WX. It's dead, and we've deleted the code from the
coming releases. Use Qt, we support it well.

Why do you need to *recompile* C++ code through the GUI? That sounds
architecturally more than questionable. It also contradicts what you
say: you just want to call C++ functions from your GUI. But maybe I'm
missing something here; if so, please elaborate!

The latter is actually not that hard – assuming your functions are
callable from Python (and our build system takes care of that!), you
can just use them as Qt "SLOT"s, which means that you can connect an
event (e.g. a button click) to them in Python.

So, you'd need no extra framework at all – GNU Radio and our python
wrappers and Qt do all this for you :)

Best regards,
Marcus

On Sun, 2019-03-10 at 22:14 -0700, Laura Arjona wrote:
> Hi,
> I have designed a gnu-radio system with different blocks (pre-defined
> and out-of-tree) to run on a USRP.
>
> I want to create a custom GUI, where the user can modify the
> behavior  of  the OOT blocks. I have developed the OOT blocks in
> C++.
> (it would be basically call functions of the c++ code using the
> parameters form the user input) 
> The GUI should run the main .py file of the GNU-radio flowgraph, and
> should re-compile the C++ codes associated to the OOT blocks.
>
> I would appreciate to have some recommendation about which framework
> to use.
> Should I use wxPython?
>
> Thank you.
> Laura
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


--
Laura Arjona 
Washington Research Foundation Innovation Postdoctoral Fellow in Neuroengineering

Paul G. Allen School of Computer Science & Engineering
185 E Stevens Way NE
University of Washington
Seattle, WA 98195-2350

reply via email to

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