discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] failed assertion in gr_buffer.h


From: Ed Criscuolo
Subject: Re: [Discuss-gnuradio] failed assertion in gr_buffer.h
Date: Mon, 19 Nov 2007 11:19:05 -0500
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414

Yes, the relative rate is constant.

It was my understanding that the sync_interpolator class
interpolates zeros into the data stream, requiring you to
low-pass filter the results to remove the introduced
high-frequency ailasing.  This wasn't suitable my use, as
I'm trying to resample a digital bitstream, and the
interpolated values need to duplicate the previous
input value.

Is my understanding wrong?

@(^.^)@  Ed


Eric Blossom wrote:

On Mon, Nov 19, 2007 at 10:43:32AM -0500, Ed Criscuolo wrote:

I'm having difficulty with a block I'm writing that I've been
unable to resolve, and I hope somebody out there can help.

The block's input and output run at different rates, so I
inherited from gr_block, as in the howto-write-a-block-3.1.1
first example.  In addition, I supplied a forecast method
that returns the number of input items required for a given
number of output items, and I used the
"set_relative_rate" method in the constructor to set
the relative rate to output_rate/input_rate.


BTW, is the input rate to output rate relationship constant?
E.g., 1:N or N:1.  If so, you can use the gr_sync_interpolator or
gr_sync_decimator base class.  Less likelihood of trouble with those ;)

Eric




reply via email to

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