discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to extract part of a vector in GNURadio Compa


From: Jeff Long
Subject: Re: [Discuss-gnuradio] How to extract part of a vector in GNURadio Companion?
Date: Tue, 30 Jan 2018 11:23:42 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

Reading this again, you're probably looking to continuously extract a slice from a vector type, not a vector sink as I first read it.

Ah, there is an efficient way. Convert vector-to-stream, use keep-m-in-n with an offset, and convert back to a vector. Hope that works.


On 01/30/2018 11:06 AM, Jeff Long wrote:
Flowgraphs aren't procedural, so you can't say "run, then extract". But you can build a flowgraph in GRC, import/run it from a small Python program, and then extract a slice of the vector.

On 01/30/2018 10:44 AM, kokosz wrote:
Dear all,

Is there any way to extract just some part of a vector in GNURadio Companion for further processing?

For example, FFT block returns a vector of, say, 1024 complex points in frequency domain, but I want to extract just some of them (e.g. points no. 113-250) and then process them (e.g. convert to stream and calculate their average value etc).


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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