Forum: GNU Radio Time delaying a signal

5fd1e4f6f03488a54ea5b31a1ef94886?d=identicon&s=25 asad umer (Guest)
on 2014-05-12 20:03
(Received via mailing list)
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?
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2014-05-12 20:05
(Received via mailing list)
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
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
The delay block is in samples.



--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
5fd1e4f6f03488a54ea5b31a1ef94886?d=identicon&s=25 asad umer (Guest)
on 2014-05-12 20:15
(Received via mailing list)
On 5/12/14, Marcus D. Leech <mleech@ripnet.com> wrote:
503e7c2961c7debe24eda2c31330759b?d=identicon&s=25 Mike Jameson (Guest)
on 2014-05-12 20:20
(Received via mailing list)
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
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2014-05-12 20:20
(Received via mailing list)
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 Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
D17685d174fee4ca258c75cce7bc2202?d=identicon&s=25 Marcus Müller (Guest)
on 2014-05-12 20:21
(Received via mailing list)
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
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2014-05-12 20:24
(Received via mailing list)
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 Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
C2ed5433862330f8d76de8eb807851ca?d=identicon&s=25 Mike Jameson (Guest)
on 2014-05-12 20:29
(Received via mailing list)
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 Jameson M0MIK BSc MIET
Email: mike@scanoo.com
Web: http://scanoo.com
5fd1e4f6f03488a54ea5b31a1ef94886?d=identicon&s=25 asad umer (Guest)
on 2014-05-13 07:15
(Received via mailing list)
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...
B4ffbc711addde4c649b1ed526df6157?d=identicon&s=25 Martin Braun (Guest)
on 2014-05-13 10:08
(Received via mailing list)
On 12.05.2014 20:19, Marcus Mller 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" :)

Martin
B4ffbc711addde4c649b1ed526df6157?d=identicon&s=25 Martin Braun (Guest)
on 2014-05-13 10:09
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.