discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] OOT: General type block changing parameter with W


From: Federico 'Larroca' La Rocca
Subject: Re: [Discuss-gnuradio] OOT: General type block changing parameter with WX GUI slider
Date: Mon, 12 Jun 2017 09:05:42 -0300

Hi,
In any case, if you use WX or QT, you will have to create some setters methods in order to set these parameters on-line from a slider. I've personally never implemented those, but you should take a look at the code generated by any flowgraph that does. For instance, create a new flowgraph with a delay which you change from a slider, and check how it works. It should be rather straightforward.
best
Federico

2017-06-09 10:57 GMT-03:00 Marcus Müller <address@hidden>:

Please don't use WX Gui widgets for new designs. We're deprecating them, and they are NOT part of the oncoming GNU Radio 3.8 release. Use Qt instead. We simply have no-one to maintain the WX GUI elements, and thus, it'll be very hard to help you with WX issues.

Best regards,

Marcus


On 09.06.2017 10:19, Ali wrote:
Hi to all,

I created a module and its type is general. It has 6 inputs and 2 outputs. Also, there are 2 parameters. I noticed that I cannot change these parameters while the GRC is running(I am using WX GUI Slider). Actually, I can change them but my block uses the default value of WX GUI slider box.

In .cc file under the place where we define number of input/ouput ports, I declare them as

parameter1(p1),
parameter2(p2)

Then in the .h file, under the private, I declare them as

float parameter1;
float parameter2;

What might be the problem?

Best regards,
Ali




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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