1

I need to apply a math formula (e.g. take a square root) to every sample (of 64 element vector) in the data stream coming out from a GRC signal source block (e.g.Complex to Mag Phase block in the attached GRC flowgraph) using Python code, just before that stream gets passed on to some other block down the stream (e.g. QT GUI Time Sink in the attached GRC flowgraph)

I will be applying phase unwrapping to the 64 sample phase vector before it is displayed to time sink.

Example GRC flow graph

  • So what exactly is your question? Were you expecting someone to write all the code for you? – ekhumoro Jan 25 '18 at 17:48
  • I have this flowgraph with me, and its auto-generated python code. I need to know how to capture the FFT phase and then lets say apply some scaling (or phase unwrapping in my case) and pass it to the QT GUI Sink for display. – Hassaan Ahmad Jan 26 '18 at 15:57
  • That is way, way too broad for an SO question. Start writing some code yourself first, and then come back when you have a much more specific problem. – ekhumoro Jan 26 '18 at 17:22

1 Answers1

1

So, you'll need to write a block, as you already noticed!

Writing blocks isn't that hard; the intro on

http://tutorials.gnuradio.org

should at least give you the ability to implement what you want.

Marcus Müller
  • 34,677
  • 4
  • 53
  • 94