Re: FFT block - change window type on runtime

2024-02-21 Thread Marcus Müller

Hi Jakub,

that's right! When you open the block properties of your FFT block, you will see that the 
names of some parameters are underlined: That means they have a method of being updated at 
runtime.


However, the window field is not underlined!

You can work around that, though, easily! Set your FFT's window to [] (no windowing), and 
do the windowing before:


input ---> multiply const --> FFT -->

where the "constant" of "multiply const" is what you adjust at runtime :)

Best regards,
Marcus

On 21.02.24 17:07, Šerých Jakub wrote:

Hi there!
I'm pretty new to gnu radio and this is my first time posting to this mailing 
list, so excuse me if my question is nonsensical.

I am trying to switch the window type in FFT block during runtime. I added QT 
GUI chooser with window.blackmanharris() etc. options, called it win and I put 
the variable name win to the Window parameter of FFT block. On start, it works 
perfectly (if I change default value of the chooser and start the flowchart) 
but nothing happens if I change value of chooser during runtime. It seems to 
me, that FFT initialises window type only on startup and doesn't look at it 
during runtime.
Is there any way how to do it?

Thanks for any help

Jakub

GRC 3.10.4.0 (Python 3.10.12) on DragonOS





Re: GNURADIO10 and hierarchical blocks

2024-02-21 Thread Achilleas Anastasopoulos
please disregard the email.

I answered my question here:

https://wiki.gnuradio.org/index.php/Hier_Blocks_and_Parameters


"For GNU Radio v3.10, the files will be created in the directory where the
*.grc* file is saved. Please create the *.grc_gnuradio* directory and copy
the *.py* and *.yml* files there:"


thanks
Achilleas

On Wed, Feb 21, 2024 at 11:25 AM Achilleas Anastasopoulos 
wrote:

> Hi all,
>
> I recently upgraded from 3.8 to 3.10 and tested a hierarchical block.
> I compiled it and it generated a py file in the same directory as the grc
> file.
>
> My understanding from 3.8 was that it puts the py code and an yml file in
> my .grc_gnuradio folder
> so it is available to grab it in my flowgraphs.
>
> However this is not the case now.
>
> Am I missing something here?
>
> thanks
> Achilleas
>


GNURADIO10 and hierarchical blocks

2024-02-21 Thread Achilleas Anastasopoulos
Hi all,

I recently upgraded from 3.8 to 3.10 and tested a hierarchical block.
I compiled it and it generated a py file in the same directory as the grc
file.

My understanding from 3.8 was that it puts the py code and an yml file in
my .grc_gnuradio folder
so it is available to grab it in my flowgraphs.

However this is not the case now.

Am I missing something here?

thanks
Achilleas


FFT block - change window type on runtime

2024-02-21 Thread Šerých Jakub
Hi there!
I'm pretty new to gnu radio and this is my first time posting to this mailing 
list, so excuse me if my question is nonsensical.

I am trying to switch the window type in FFT block during runtime. I added QT 
GUI chooser with window.blackmanharris() etc. options, called it win and I put 
the variable name win to the Window parameter of FFT block. On start, it works 
perfectly (if I change default value of the chooser and start the flowchart) 
but nothing happens if I change value of chooser during runtime. It seems to 
me, that FFT initialises window type only on startup and doesn't look at it 
during runtime.
Is there any way how to do it? 

Thanks for any help

Jakub 

GRC 3.10.4.0 (Python 3.10.12) on DragonOS