[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] ninput_items from demodulator
From: |
Fasika Alemayehu |
Subject: |
[Discuss-gnuradio] ninput_items from demodulator |
Date: |
Mon, 11 Feb 2008 03:40:08 -0800 (PST) |
Hi all,
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.
What i did is i override the forcast method of
gr_block.
void
usbm::forecast (int noutput_items,
gr_vector_int
ninput_items_required)
{
unsigned ninputs = ninput_items_required.size ();
for (unsigned i = 0; i < ninputs; i++)
ninput_items_required[i] =1024 ;
}
But the problem is that evenif i dont get less than
1024 items, the input varies with the differenc calls
to the method.
Here is a sample of the input items from a demod
block.
number of items: 1027
------------------------------------------------------------------------------------------------------
number of items: 2047
------------------------------------------------------------------------------------------------------
number of items: 1025
------------------------------------------------------------------------------------------------------
number of items: 1024
------------------------------------------------------------------------------------------------------
number of items: 2047
------------------------------------------------------------------------------------------------------
number of items: 1024
------------------------------------------------------------------------------------------------------
number of items: 1026
------------------------------------------------------------------------------------------------------
number of items: 2047
------------------------------------------------------------------------------------------------------
number of items: 1025
------------------------------------------------------------------------------------------------------
number of items: 2053
------------------------------------------------------------------------------------------------------
Does this mean that the size of the output from the
demodulator block varies ?
Fasika
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
- [Discuss-gnuradio] ninput_items from demodulator,
Fasika Alemayehu <=