discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] [BULK] Fading channel in GNURadio


From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] [BULK] Fading channel in GNURadio
Date: Fri, 22 Mar 2013 10:39:54 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Mar 21, 2013 at 03:54:48PM -0400, Sean Nowlan wrote:
>     I want the block to be able to update the channel filter taps in run time.
>     Can I do that?
> 
>     Can I define a function in the class so that the filter taps are updated
>     for every 5 seconds?
> 
> The set_taps function gives you access to this from the top_block level. In
> that case, your main thread would be updating the block's taps using a while
> loop with sleep(5). You could also make a block class that inherits from
> fir_filter_ccc or channel_model and change the taps within the work function
> every N seconds: every time (ninput_items / samp_rate) % N == 0. I hope that's
> enough info to point you in the right direction.

Note that will change taps in wall time, not sample time.

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


reply via email to

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