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 <[email protected] <mailto:[email protected]>> 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.......
     >
     >


Reply via email to