Wednesday, February 21, 2024

Re: FFT block - change window type on runtime

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
>

No comments:

Post a Comment