discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to call another blocks in custom out-of-tree


From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] How to call another blocks in custom out-of-tree module
Date: Tue, 5 Nov 2013 14:10:30 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Nov 05, 2013 at 12:56:24PM +0000, address@hidden wrote:
> I want to call another gnu-blocks (or another hier-block) in work function.
> (Line 14~16)
> 
> 1)     How to connect input item to another block’s input
> 
> 2)     How to connect local array to another block’s output

In GNU Radio's 'block' terminology, you will *never* call another block
from within one block's work function. You always connect the output of
one block the input of the next.

What exactly are you trying to do? Are you simply trying to outsource
some signal processing code out of your block?
We do this quite a lot, but then the object we call from the work
function is not a GNU Radio block, but rather a generic object. Of
course, you can include any Python module or object into your own Python
blocks.

Or are you trying to call another, existing GNU Radio block? In this
case, you might want to think about splitting your block up such that
you can connect your block and existing blocks through the regular
mechanism (i.e. top_block.connect()).

> Please help me.
> 
> Actually I need to make my own sub block.
> 
> But I need gnuradio blocks during processing my own block.

Perhaps a hier block will solve your problem?

MB

-- 
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: pgptwmzPzREYy.pgp
Description: PGP signature


reply via email to

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