On Wed, Mar 07, 2007 at 09:59:02AM -0800, Daniel Garcia wrote: > > I think I've misunderstood they way GR_SYNC_BLOCK > works. Can someone set me strait? > > I've called set_history(1) in the constructor; I have > one input and one output. I assumed that the in buffer > would contain noutput_items + 1 samples; with in[0] > being the history (overlap) from the previous. > > I'm trying to take a diff then do a cumsum on the > stream. > > Can someone point me in the right direction?
You are off by one. The nomenclature might not be the best in the world, but it's what we've got. history refers to how many samples you need to look at to compute a single output (ignoring decimation and interpolation). Thus, the normal case is 1. That is y[i] = f(x[i]). If you want noutput_samples + 1, then set_history(2). Eric _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
