Forum: GNU Radio how to pass a large number of items between blocks?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D50c3828e720e33ce734d9124c97d960?d=identicon&s=25 Mostafa Alizadeh (m-alizadeh)
on 2014-05-13 19:28
(Received via mailing list)

I recently encountered a problem with the large number of items. I wanna
pass about 75000 items from one block to the another. I thought that I
could do this with setting the min of output items in the constructor of
the block but I got the following error by runtime:

thread[thread-per-block[1]: <block crc (1)>]: Buffer too small for

I searched around but I couldn't find a cogent response. please help me!

Any idea please?

B4ffbc711addde4c649b1ed526df6157?d=identicon&s=25 Martin Braun (Guest)
on 2014-05-14 10:35
(Received via mailing list)
On 13.05.2014 19:27, Mostafa Alizadeh wrote:
> I searched around but I couldn't find a cogent response. please help me!
You could use your own version of tagged streams to indicate
boundaries... regular tagged stream blocks also suffer from buffer

That said, 75000 items doesn't seem all that large. What's your item
size, is it sizeof(gr_complex)? Did you set your kernel.shmmax =

D50c3828e720e33ce734d9124c97d960?d=identicon&s=25 Mostafa Alizadeh (m-alizadeh)
on 2014-05-14 11:30
(Received via mailing list)
Hi Martin,
Yes you're right, 75000 items isn't so large! But after passing these
through an encoder, the number of items becomes about 227000!! That's a

However, I skewed over the problem and till now I've reached to this
that I may use 3 or 4 inputs-ouputs ports per block (instead of actually
one input-ouput port) and divide the 227000 items into 4 parallel
and read all of them through 3/4 different input ports and put them out
the 3/4 output ports ! That seems work but I'm not sure that's the best

If you have any idea I'll be appreciate you so much.

D50c3828e720e33ce734d9124c97d960?d=identicon&s=25 Mostafa Alizadeh (m-alizadeh)
on 2014-05-15 08:18
(Received via mailing list)
Hi Martin,
I finally found the solution. I the method *set_align(int ), * to tell
scheduler output is multiple of a number but this is different than
set_output_multiple(int ). The set_align will decrease the amount of
if the output number of items is less than the actual number of written
output until the output buffer aligned with the number of items will
written on it!

This is interesting.

This topic is locked and can not be replied to.