discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] ninput_items from demodulator


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] ninput_items from demodulator
Date: Mon, 11 Feb 2008 08:05:49 -0800

On 2/11/08, Fasika Alemayehu <address@hidden> wrote:

> I have a module to demodulate packets received from a
> file source, and it works fine. I want to have a fixed
> number of inputs (1024) coming from the demodulator.

> But the problem is that evenif i dont get less than
> 1024 items, the input varies with the differenc calls
> to the method.

As your numbers show, using forecast will ensure that the GNU Radio
scheduler calls your work function with at least that many pending
input items to process.  You may get more than than, but you don't
have to process them.   Be sure to return from the work function with
the proper exit value indicating how many samples you actually did
process.  If you are using general_work(), also be sure you are
calling the consume function properly.

-- 
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com/




reply via email to

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