discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Variable Delay Error


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Variable Delay Error
Date: Wed, 8 Jan 2014 09:23:40 -0500


On Wed, Jan 8, 2014 at 7:34 AM, António Gomes <address@hidden> wrote:
Hi all,
I'm trying to make a delay on a signal with a variable delay with a WX GUI Slider. When i run the simulation and try to add a delay on a sinusoidal signal it gives me this error:

This is a problem with typing between Python and C++. The delay block wants (demands, really) an integer value, but your slider is passing back a float. In the delay block, cast it as "int(delay_slider)".

Also, you can use the delay block from GNU Radio; it allows variable delays. There's nothing wrong with using the blocks from gr-baz, but I would recommend you use blocks that are directly part of GNU Radio when they are available. Mostly because more of the community will be more familiar with them.

Tom


reply via email to

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