discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] on the fly set_output_multiple()


From: Martin Braun
Subject: Re: [Discuss-gnuradio] on the fly set_output_multiple()
Date: Fri, 21 Feb 2014 16:36:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/21/2014 12:38 AM, Activecat wrote:
> Problem:
> Says, the instantaneous interpolation_factor is 3.
> As inherited from gr::block, the scheduler may call the general_work()
> with noutput_items=2 (any number is possible).
> When this happen, there is nothing to be done except to consume_each(0)
> and return 0 in the general_work().

You could tweak forecast() to require more input.

> But then the scheduler will repeat calling general_work() many times
> with noutput_items=2.  This is fatal.
> 
> Solution:
> On the fly,  set_min_noutput_items(3)
> Then the scheduler will not call general_work() with noutput_items
> equals a value less than 3.
> This solves the problems !
> 
> Question:
> Does this function work on the fly?    set_min_noutput_items()

It should, that's what it was made for.

MB





reply via email to

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