Re: [Discuss-gnuradio] Need help to understand code of sync:decimator block

2014-03-08 Thread Miklos Maroti
Hi Kunal, Use a decimating FIR filter with taps [0.2, 0.2, 0.2, 0.2, 0.2] and decimation 5. It will be faster than anything you are about to write. Miklos On Sat, Mar 8, 2014 at 12:03 PM, kunal sankhe kunal.2...@gmail.com wrote: Hello Marcus, Sorry for my vague explanation. I want to write a

Re: [Discuss-gnuradio] Need help to understand code of sync:decimator block

2014-03-08 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry I was unclear: 5 inputs means 5input items from the same (only one) input stream. Now, Miklos is most probably very right, the GNU Radio filters are highly optimized. But let's take this as an exercise in understanding decimators: A decimator

[Discuss-gnuradio] Need help to understand code of sync:decimator block

2014-03-07 Thread kunal sankhe
Hello, I am using GNU Radio version 3.6.5 and trying to write a block to calculate average of 5 samples. I want to produce one average output corresponding to 5 input samples. I am using set_history(5) to remember previous data. I used gr_modtool script of type decimator to create file. eg. for