discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Savino Piccolomo
Subject: Re: [Discuss-gnuradio] Fixing the number of input_items streaming in a block
Date: Tue, 7 Aug 2018 16:16:37 +0200

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 <address@hidden> 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

reply via email to

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