[Top][All Lists]

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

Re: [Discuss-gnuradio] Making a transparent block for throughput measure

From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] Making a transparent block for throughput measurement
Date: Wed, 12 Dec 2012 08:54:55 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Dec 11, 2012 at 07:00:42PM -0500, Tommy Tracy II wrote:
> I'm trying to measure the throughput of my flow graph. In order to accomplish 
> this, I'm creating a transparent float block and then measuring the 
> btyes/second that is going through the block. Unfortunately, my block is not 
> acting transparently. I'm getting strange distortion when doing AM 
> demodulation.

Try without self.consume(); grextras using auto_consuming in sync
blocks, although I don't know what happens if you do call it (my
hypothesis is that if I'm right, your audio should sound choppy).


PS: Or is this the omninous Bugsquatch people have been talking about?

> Below is my grextras code:
>       Is there something that I am missing?
> ----------
> class emptyBlock(gr.block):
>     def __init__(self, args):
>         gr.block.__init__(self, name="empty", in_sig=[float32], 
> out_sig=[float32])
>     def work(self, input_items, output_items):
>         in0 = input_items[0]
>         out = output_items[0]
>         out[:]=in0
>         self.consume(0, len(in0))
>         return len(out)
> ----------
> Sincerely,
> Tom Tracy II
>     UVA
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

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

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

Attachment: pgp3jeEP_unFL.pgp
Description: PGP signature

reply via email to

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