|
From: | Marcus Müller |
Subject: | Re: Why noi in block Gnuradio is changed every time........ |
Date: | Mon, 22 Nov 2021 13:12:50 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Please always reply on the mailing list! On 22.11.21 12:19, sp h wrote:
Thanks, I used method set_output_multiple to 4096. now all noi is 4096...
No, only these that you observed. You might also be seeing 9192 or higher multiples of 4096. Again, it's important, no matter what, that your work() only consumes the amount of samples you actually process.
but I had a question is it possible that some samples are lost with this method...
No, GNU Radio never loses samples. Most probably, you're telling GNU Radio you've consumed samples that you didn't actually process.
Best regards, Marcus
On Mon, Nov 22, 2021 at 2:10 PM Marcus Müller <mmueller@gnuradio.org <mailto:mmueller@gnuradio.org>> wrote:Hi Stack Programmer, you can't. Your work function needs to be able to deal with different sizes (it doesn't have to consume all input, that's *your* choice). You can tell GNU Radio your block wants a multiple of a specific size, set_output_multiple. Best regards, Marcus On 22.11.21 11:16, sp h wrote: > I developed a block Gnuradio that works with samples block type is sync block. i used a > for that i can print samples > > for(inti=0;i<noi;i++) > > Why every time noi in gnuradio is changed...i used USRP and UHD source... > > but in my custom block noi size is not fixed..how can i fixed it....... > >
[Prev in Thread] | Current Thread | [Next in Thread] |