Whoops, just noticed I didn't reply to all when I answered so my message and Pedro's response were not forwarded to the mailing list :
Le jeu. 7 janv. 2016 à 20:28, Pedro Gabriel Adami < pedrogabriel.ad...@gmail.com> a écrit : Dear, Timothée, Thank you so much. I am doing some tests and I've realized that the results are a little strange. That is why I asked. Let me ask you one more thing: Do you know some block that is capable to retain N samples, so I can use them and after that, it retains the next N samples? Like a variable where I can "save" the information for a short period of time, but my Gnuradio does not have a "variable sink". Thanks in advance. Em 07/01/2016 17:18, "Timothée COCAULT" <timothee.coca...@gmail.com> escreveu: > Hi Pedro, > > When you're not sure, the best solution is often to look at the code. > If you look at the work function in > gr-blocks/lib/moving_average_XX_impl.cc.t, you see that the block first > sums the history (of length 100 in your case). > For each additional input items, it adds the new item and subtracts the > n-100 item, and outputs the current sum. > > So it will first calculate 1+...+100, then 2+...+101 and so on. > > Regards, > Timothée. > > I don't understand exactly your question but you can use a stream to vector to group your items in packets of size N, and plug it into a probe signal
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio