Hi George,

On 14/04/2022 01.19, George Edwards wrote:
> I am writing a Gnuradio C++ OOT block and need to get the number of complex
> input data samples fed into my block by the scheduler on each iteration of
> data delivery. 

> In Python, it is easy, I can find the value by doing: numInputs =
> len(input_items[0]). In the C++ general_work method which I paste below, I
> have not been able to extract the number of input samples from any of the
> parameters.
> [image: image.png]


The ninput_items[0] contains the length of input_items[0]. From 
https://wiki.gnuradio.org/index.php/BlocksCodingGuide#Basic_Block

  The general work has a parameter: ninput_items
      ninput_items is a vector describing the length of each input buffer

Regards,
Vasil

Reply via email to