discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] self.set_min_noutput_items() is not a valid pytho


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] self.set_min_noutput_items() is not a valid python command in gnuradio ?
Date: Sat, 08 Mar 2014 12:43:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Activecat,

your std::min should be a std::max :) would you try with that?

On 08.03.2014 12:30, Activecat wrote:

> BTW I thought it is redundant to do this change, because as long
> as set_min_noutput_items(d_iFactor) works on the fly, the scheduler
> will not ask for less than iFactor samples. Correct..?
Yes, in that case the block_executor iteration should return the magic
value "BLKD_OUT", which will tell the thread scheduler to sleep until
there is more output space available. (refer to min_available_space, l.70)
However, what you're seeing is a repeated call of your work, so
*something* goes wrong here :/
What you could try is do some output of the parameters that forecast
and work are called with, and what they returned.
Otherwise, I'm kind of at the end of my ideas how to pinpoint the
problem...

Greetings,
Marcus

> 
> Regards, Activecat
> 
> 
> 
> On Sat, Mar 8, 2014 at 5:41 PM, Marcus Müller <address@hidden>
> wrote:
> 
>> Hi activecat, The scheduler might be confused if he asked for
>> less than iFactor samples, because then your forecast tells him
>> you need 0 input to produce that... The joys of Integer division 
>> Can you modify it so that it always demands at least 1 input?
>> 
>> -- Sent from my Android device with K-9 Mail. Please excuse my
>> brevity.
> 
> 
> 
> _______________________________________________ Discuss-gnuradio
> mailing list address@hidden 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTGwJWAAoJEBQ6EdjyzlHtaEUIAIU/xwUUg4dUfzpv3cvCBTyM
gT8u9uMw/9vFRXsDRnj/QZvlgkc2EtW1vwyVrjgh165Jm9Vl8AY9SIKlPryOfFMK
7fg8G5hNuXm8wIIL2iCj15Kom9qp+Gh9YK8ULD/ElHh/z2zkSTftsp647DbNcget
miKrjPfEIkN6JQdz5xpEWUvgblGjHUKclI100A2kGajPAcY7YWZczAZ0LxIy/rKZ
CjOpRsHRgIa/hd1WvC5PiaqtFJxoyGHK3weFgPZAAi6IYL2rH5LSmrFTeGQrYgYH
CvXEq8GjbPLwUEv8ubyUWNv95h0fvDJUhMchVUY17v/ZnHdZqE8Bkd6VNELZO3c=
=GUvF
-----END PGP SIGNATURE-----



reply via email to

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