|
From: | Activecat |
Subject: | Re: [Discuss-gnuradio] testing block written in block |
Date: | Thu, 19 Jun 2014 11:35:44 +0800 |
If you’d rather use stock GR blocks or you would like a flowgraph with identical functionality, you can hook up a Vector to Stream block (with num_items=vector_length) to an Integrate block (with decimation=vector_length).
…
vector_length = 10
self.vec2stream = blocks.vector_to_stream(gr.sizeof_gr_complex, vector_length)
self.integrate = blocks.integrate_cc(vector_length)
self.connect((self.vec2stream, 0), (self.integrate, 0))
…
Sean
[Prev in Thread] | Current Thread | [Next in Thread] |