On 10.09.2015 07:25, Nicolas Cuervo Benavides wrote: > 1. Where does the 4096 comes from? it is 2¹², which I don't recall being > 12 the size of one datatype that is involved in my function. It is > directly a value from scheduler and always the same?
This value is pretty much random; 4096 works well with pages, but it could be any other value. noutput_items is how much valid items you have in your buffer. On the *first run*, all other values will be zero (but after that, they may contain old samples). > 2. If it is not always the same value, how I am indirectly fixing that > amount of samples? I would like, if possible, to save more samples as it > would reduce the variance of the calculations. You need to construct your block to handle *any* number of samples, unless you constrain it e.g. with set_output_multiple(). Your variance can be calculated over several work() calls, until you've read enough samples. Your code may have some other issues, but it's hard to say without seeing the rest of the work function. M _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio