discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Buffer: Change the oldest with the newest


From: Ali
Subject: [Discuss-gnuradio] Buffer: Change the oldest with the newest
Date: Tue, 17 Oct 2017 10:56:29 +0300

Hi to all,

I have a GRC in which I am turning USRP stream to vectors of 1024 length. Then I have a DSP block (Block 1) that uses these blocks and gives an output of length 1024. 

* Then, I want to accumulate 10 of these 1024 length blocks.
* After 10 of these blocks accumulated, I will give these 10*1024 length block to another DSP block(Block 2).

After I used this 10*1024 block, I don't want this block to be completely erased, but I want that it should be updated with the new 1*1024 block coming from Block 1. Then I will use this updated 10*1024 block in Block 2.

In short, firstly, I want to accumulate some data. Then replace the oldest part of this data with the newest.

Should I play with:

1- Max/min output buffers of the blocks in GRC
2- Stream to vector/ vector to stream block combinations
3- Inside Block1 or Block2, change the "consume_each" function

Regards,
Ali



reply via email to

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