Tuesday, August 7, 2018

Re: [Discuss-gnuradio] Fixing the number of input_items streaming in a block

Just to clarify,

I am basically asking if there is a way to fix the number of input_items streaming in and processed by the work function each time it is called by GRC.
Note: I am not talking about the number of input signals (i.e. wires connected to the block) or the dimension of the vectors streaming in (could also be float data in the simplest case).

Thanks

On Fri, 3 Aug 2018 at 19:28, Savino Piccolomo <piccolomo@gmail.com> wrote:
Hi all,

I am writing a gnuradio block in python equivalent to the QT GUI time Sink block but which plots an input vector/s instead of input stream/s.

The input_items in the work function is a matrix of shape:
(inputs, vectors, vector_length),
where inputs is the number of input vectors to be plotted, vector_length is the size of  each vector to be plotted and vectors is the number of vectors streaming and processed at each call of the work function.

I have noticed that vectors is connected to vector_length; more precisely, for increasing vector_length, vectors decreases till eventually 1; for decreasing vector_length, vectors increases and the computation time increases as well, because at each step (i.e. each time the work function is called) more data (vectors) has to be processed.

My question therefore is: is there a way to fix (possibly to 1) vectors?
So far I haven't find a way playing around with functions as consume and forecast. Any help would be appreciated.

Thanks,
- Savino



--
- Savino

No comments:

Post a Comment