Time delaying a signal

I want to introduce a time delay in a signal received through USRP…I
have used the ‘Delay’ block but it is not showing any delay…what is
the appropriate block to use??
Can i delay the phase instead? Are time and phase delay equal?

On 05/12/2014 02:02 PM, asad umer wrote:

I want to introduce a time delay in a signal received through USRP…I
have used the ‘Delay’ block but it is not showing any delay…what is
the appropriate block to use??
Can i delay the phase instead? Are time and phase delay equal?


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

The delay block is in samples.


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On 5/12/14, Marcus D. Leech [email protected] wrote:

The delay block works in samples so to get seconds you have to multiply
the
sample rate by the number of seconds you want to be delayed by.

Mike

Well, not that I’m aware of.
However, FFT, multiplication with a signal source, IFFT is not really
hard
to do, and it’s what a time shift mathematically is.

Greetings,
Marcus

On 05/12/2014 02:14 PM, asad umer wrote:

so there is no exclusive block for this purpose in GRC??
A delay in samples is a delay in time:

1 sample == 1/sample-rate seconds of delay


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

To shift just the phase you can use the ‘Complex To Float’ block in GRC
which separates the stream into real and imaginary components. After
adding the delay block in line with the imaginary component you can then
recombine the stream by using the ‘Float To Complex’ block.

Mike


Mike J. M0MIK BSc MIET
Email: [email protected]
Web: http://scanoo.com

I am also using the delay block in the way u have mentioned but the
signal
in scope doesn’t act accordingly ,it remains in phase with the
original…

On 05/12/2014 02:19 PM, Marcus Müller wrote:

Well, not that I’m aware of.
However, FFT, multiplication with a signal source, IFFT is not really
hard to do, and it’s what a time shift mathematically is.

Greetings,
Marcus
Also, a phase-shift is just a complex multiply by:

complex(cos(ang),sin(ang))

With angle in radians

That’s how I do manual phase correction in the interferometer support in
simple_ra


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On 12.05.2014 20:19, Marcus M. wrote:

Well, not that I’m aware of.
However, FFT, multiplication with a signal source, IFFT is not really
hard to do, and it’s what a time shift mathematically is.

Careful… if you do that on a stream, you have to keep track of phases.
I know Marcus knows this – consider this a “don’t do this at home
unless you know what you’re doing” :slight_smile:

Martin

On 13.05.2014 07:14, asad umer wrote:

I am also using the delay block in the way u have mentioned but the
signal in scope doesn’t act accordingly ,it remains in phase with the
original…

That’s unlikely. Do this:

  1. Connect sig source into port 1 of your scope (e.g. create a sine
    wave)
  2. Connect same sig source to delay
  3. Connect delay to port 2 of your scope
  4. Choose a good delay that’s not multiples of your “wave length”
  5. Et voil, phase shift.

M