[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Proper setting for sample delay for polyphase arbitra
From: |
Andy Walls |
Subject: |
[Discuss-gnuradio] Proper setting for sample delay for polyphase arbitrary resampler? |
Date: |
Tue, 24 Jun 2014 14:15:02 -0400 |
Hi,
I have a Polyphase Arbitrary Resampler block in a flow graph and I want
to set the "Sample Delay" parameter so GnuRadio delays tags properly.
With the following parameters:
Input Sample Rate: Fs
Resampling Rate: r = output_rate / Fs
Number of Filters: N
Taps: taps=firdes.low_pass_2(N, N*Fs, ..., ..., ...,)
The best I can figure is to set:
Sample Delay: int(round((math.ceil(len(taps)/N) - 1.0)/2.0))
because GnuRadio applies this "Sample Delay" as offset to the tags
before scaling the tag offsets by the resampling rate r.
Can anyone confirm this is correct, or is there something I'm missing?
Thank you.
Regards,
Andy
- [Discuss-gnuradio] Proper setting for sample delay for polyphase arbitrary resampler?,
Andy Walls <=