[Discuss-gnuradio] testing block written in block

2014-06-18 Thread sreena p h
Hi  I'm new to GNU radio and is trying to develop my own block. I want to develop a block that intake a vector and out put sum of the vector elements. I used the out of tree module and followed tutorial using python code. How should be the arguments of blocks.vector_source_f to be given if i

Re: [Discuss-gnuradio] testing block written in block

2014-06-18 Thread Marcus Müller
Hi Sreena, a few quick remarks: - where does in_arg come from? - in0 should be seen as a vector of vectors. It's often useful to print in0.shape, if in0 is a numpy array - potential mistake: just returning len(input_items[0]). Be *very* aware of what the return value of a work call should be

Re: [Discuss-gnuradio] testing block written in block

2014-06-18 Thread Activecat
On Wed, Jun 18, 2014 at 4:57 PM, sreena p h sreena...@yahoo.in wrote: Hi I'm new to GNU radio and is trying to develop my own block. I want to develop a block that intake a vector and out put sum of the vector elements. I used the out of tree module and followed tutorial using python code.

Re: [Discuss-gnuradio] testing block written in block

2014-06-18 Thread Nowlan, Sean
From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org [mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On Behalf Of Activecat Sent: Wednesday, June 18, 2014 5:59 AM To: discuss-gnuradio@gnu.org Cc: sreena p h Subject: Re: [Discuss-gnuradio] testing block

Re: [Discuss-gnuradio] testing block written in block

2014-06-18 Thread Activecat
On Wed, Jun 18, 2014 at 9:14 PM, Nowlan, Sean sean.now...@gtri.gatech.edu wrote: 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