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



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

Reply via email to