Friday, August 3, 2018

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

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

No comments:

Post a Comment