I have in my project a sample rate of 10.23 million samples per second
I need to delay the signal ±1ns. With GNURadio block delay I can delay
signal 97.75ns (1 / 10,230,000 -> + - one sample).
Could I use the fractional resampler block to enter a variable
Has anyone implemented a fractional delay block?
well, yes, you could, but that sounds ugly:
- a sample rate of 1e9Hz implies --for complex float-- a memory
consumption of 1e9*8B~=8GB per second…
- unwieldy fractional resampling, because 10.23e6 and 1e9 don’t have a
very large common divisor; you’ll be interpolating by a factor of 100000
just to decimate by 1023… That is effectively just very very many
- you’re sampling at 10.23MS/s, but you want to do something with a
temporal resolution of 10 times that rate; that’s a phase shift, for
sure, but I’m afraid that it sounds like you’re trying to harm Nyquist
in some way or another.
When were talking on how to simulate delay introduced by radar range in
GNU Radio, a wise elder told me to do time shifting in frequency
The idea is that a time shift corresponds to frequency shift in
frequency domain, so you can, within the spectral precision defined by
the length of your DFT, have arbitrary shifts by doing [time
signal]->[DFT]->[multiply with complex sine]->[IDFT] . Note that, due to
the circular nature of the DFT, this will distort the first samples of
 one might consider him wise
 not really an elder
yes, your formular looks correct, scalar multiplication aside.
Regarding your problem:
It’s not a problem, it’s a feature
you’re using window functions in your FFT, that’s what’s changing your
The FFT is but an implementation of the DFT (discrete fourier
transform), which is, considering the input as element of a
n_fft-dimensional vector space, is but a base change, and thus has an
inverse – the IDFT (incarnated by the IFFT).
what you see is something like the norm of the square of the window
function; use “rectangular” to avoid this.
I don’t really think that what you built really reflects what you’re
trying to achieve: I thought you needed a really small delay in time
domain, and a sampling rate conversion from 10MHz to 10.23MHz.
Why are you doing a delay in frequency domain? That will simply be a
frequency shift in time domain, which you could easily realize (and with
much smaller computational error) by multiplying with a complex sine in
I don’t really understand what you mean with “small variable delay in
the receiver”: Do you mean your system is not somehow synchronized?
I just realized that maybe the core problem here is that I don’t really
understand what you’re trying to do –
could you explain what this system will be used for, and why you need
that particular sampling rate etc?