discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to specify vector input signature for gr_sync


From: Shashank Gaur
Subject: Re: [Discuss-gnuradio] How to specify vector input signature for gr_sync_block.
Date: Sat, 22 Jun 2013 20:34:35 +0200

Hi,
I am not sure if there are any other types except Complex, Float, Integer and Message. But you may wanna look into gr_vector_sink/source_i/f/c. For example gr_vector_source_c is a source of gr_complex which gets its data from a vector where as gr_vector_sink_c is a gr_complex sink which writes to a vector. Similarly for int(i) and float(f). May be you can find more details in doxygen

If I am wrong I hope someone from list will correct me and provide the right way to do it.




On Sat, Jun 22, 2013 at 2:46 PM, Manu T S <address@hidden> wrote:
I am trying to write code for a block which accepts a vector input and spits out a vector output. The block is derived from gr_sync_block.
>From the tutorial on OOT I have the following information. For a block with single input and single output the __init__ method is as given below.

def __init__(self):
    gr.sync_block.__init__(self,
             name = "square3_ff",
             in_sig = [numpy.float32],
             out_sig = [numpy.float32])

How do I take in a vector input?
--
Manu T S

_______________________________________________
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]