discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to detect that the input item is empty?


From: ????????
Subject: How to detect that the input item is empty?
Date: Mon, 13 Dec 2021 11:08:08 +0800

Hi,all
I want to know how a block judges that input has been stopped? For example, my source has a total of 1000 samples, the number of input buffers is different each time, it may be 500, 100, 68... etc. When the input buffer has enough input, the work function will be called,
but when the last set of data of 1000 samples has reached the input buffer, there will be no more input, and no more work functions will be called. When processing the last set of input data, I need to be able to judge that this is the last time the work function is called, and there will be no more input next, and then I will perform zero padding during the call to the work function this time.
How to judge that this is the last input? Thanks in advance.
Best Regards,
linge93

reply via email to

[Prev in Thread] Current Thread [Next in Thread]