[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get information on number of input data samples in C++ OOT
From: |
Vasil Velichkov |
Subject: |
Re: How to get information on number of input data samples in C++ OOT |
Date: |
Thu, 14 Apr 2022 12:16:00 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
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