Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Marcus Müller
Have you tried set_output_multiple(x)? That would ensure that you'd always get n*x output space, with n in 1,2,3... Greetings, Marcus On 04/01/2015 07:49 PM, Zhe Feng wrote: > Dear Martin, > > I tried to call it in the constructor, and it's the same as call it in > the work function. It didn't w

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Zhe Feng
Dear Richard, I was trying to update and adding more features to the peak_detector2. There is a sliding look_ahead parameter described in peak_detector, but it's not actually implemented. There is a fixed look_ahead parameter coded in peak_detector2, but there is a litte bug. So I was trying to co

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Zhe Feng
Dear Martin, I tried to call it in the constructor, and it's the same as call it in the work function. It didn't work as I expected. I was actually trying to update and adding more features to peak_detector2. There is a conditional statement below in my work function. if( noutput_items >= d_look

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Martin Braun
I don't know the details off the top of my head, but this might be one of those functions that you can't call during work(). Have you tried calling it in the ctor? M On 01.04.2015 08:34, Zhe Feng wrote: Dear Marcus, Thanks for your comment! I made a typo my previous post that I was going to

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Richard Bell
Zhe, Can you explain again why you require a min size for noutput_items? It sounds like there might still be a misunderstanding as to what this variable is used for. Why does your block care about the value of noutput_items? v/r, Rich On Wed, Apr 1, 2015 at 8:34 AM, Zhe Feng wrote: > Dear Marc

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Zhe Feng
Dear Marcus, Thanks for your comment! I made a typo my previous post that I was going to say "set_min_noutput_items" but I wrote "set_noutput_items". I actually used it in the work function, but it didn't seem to function as I expected. After reading your comment, I put it in the constructor and n

Re: [Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Marcus Müller
Hi, noutput_items is what GNU Radio can maximally allow your block to produce, which is the free size in the output buffer, which is the input buffer of the next block. So if your block is faster than the downstream block, you will see exactly the behaviour you are observing. This is normal, and go

[Discuss-gnuradio] How to increase the noutput_items

2015-04-01 Thread Zhe Feng
Dear all, I'm experiencing a problem with the noutput_items. I have written a sync block which did "return" several times. I found the noutput_items dropped exactly by the amount that I returned. For example, if I wrote "return 10", after that, I printed noutput_items and found it decreased to