[Discuss-gnuradio] gnuradio c++ code structure question

2011-03-07 Thread mehmet kabasakal
Hi everyone, I am trying to develop a frame based structure for gnuradio block on c++. The frame size will be 2048 point and i will calculate the normalized amplitude for every frame i.e. ma = sum(every 2048 points)/2048; normalized amplitude = all 2048 points / ma; i wrote a code that gives me

Re: [Discuss-gnuradio] gnuradio c++ code structure question

2011-03-07 Thread Martin Braun
Hi Mehmet, you've omitted some crucial parts of your code. I'm guessing you've made your block a gr_sync_block. It's easiest if your input items are vectors. In that case, your input buffer (input_items) will contain noutput_items * 2048 float values. Then, just process your data on whole

Re: [Discuss-gnuradio] gnuradio c++ code structure question

2011-03-07 Thread mehmet kabasakal
Hi Martin, As you guess, i use gr_sync_block. But i don't use vector input items, i mean the input of the block is streaming points. Do i still have noutput_items * 2048 buffer size? Mehmet. 2011/3/7, Martin Braun martin.br...@kit.edu: Hi Mehmet, you've omitted some crucial parts of your