discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Is there a way to change the number of taps of the FIR filter in GNU


From: Christophe Seguinot
Subject: Re: Is there a way to change the number of taps of the FIR filter in GNURadio while running?
Date: Thu, 4 Mar 2021 15:04:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

I confirm this an issue for GR 3.8 and 3.9

I used:

Looking at the python generated code (see below),


    def set_transition(self, transition):
        self.transition = transition
        self.br_filter.set_taps(firdes.low_pass(1, self.samp_rate, self.bp_low, self.transition))

    def get_samp_rate(self):
        return self.samp_rate

    def set_samp_rate(self, samp_rate):
        self.samp_rate = samp_rate
        self.blocks_throttle_0.set_sample_rate(self.samp_rate)
        self.br_filter.set_taps(firdes.low_pass(1, self.samp_rate, self.bp_low, self.transition))
        self.qtgui_freq_sink_x_0.set_frequency_range(0, self.samp_rate)


On 04/03/2021 04:10, Jay Patel wrote:
Hi all,

I am using GNURadio example Filter Introduction flow graph which shows basic introduction of filtering. I want to change the no. of taps while running the program. I tried to put the qt gui range but it looks like GNURadio creates/calculates taps as a static vector in the start of the execution of the flow graph.

image.png

Is there a work around this ?  I mean can I put a slider or counter for changing the transition_width which changes the number of taps while running the flow graph ?

Thanks. Any suggestions are appreciated.

With Regards,
Jay Patel



reply via email to

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