discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Consuming block of data in python block


From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] Consuming block of data in python block
Date: Tue, 29 Jan 2013 09:03:16 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jan 29, 2013 at 02:00:15PM +0800, Sreeraj Rajendran wrote:
> As Josh explained in [1] input can be anything that you can represent as a
> numpy data type.
> 
> 
> Try using something like
> 
> gr.block.__init__(self, name="my block",
> 
>                   in_sig=[numpy.dtype((numpy.float32,2))],
> 
>                   out_sig=[numpy.float32])
> 
> 
> 
> Also go through fixed/arbitrary ratio blocks in [2] for implementing blocks
> with different rate.

$ gr_modtool -t decimator -l python BLOCKNAME

will take you there.

M

-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgpFxXXa199su.pgp
Description: PGP signature


reply via email to

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