[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Discuss-gnuradio] Variable phase signal generator
From: |
Narayanan, Sivaramasubramanian (R&T) |
Subject: |
RE: [Discuss-gnuradio] Variable phase signal generator |
Date: |
Thu, 30 Jul 2009 12:13:51 +0530 |
Thanks Eric,
I actually need to vary only the phase of the signal, the frequency of
the signal and reference remaining constant. Also I need to be able to
vary the phase continuously in the run time.
I hope gr.delay(...) would work, except for the initial latency. And I
could use gr.delay.set_delay() to change the phase difference during run
time, provided the delay value is maintained within the number of
samples per cycle. Please advice.
Also, I want to know whether there is any block that takes in two
signals (float / complex streams) and gives out the phase difference
between them in some form, say no of samples. Please Clarify.
Thanks a lot.
Regards,
Sivaram
-----Original Message-----
From: Eric Blossom [mailto:address@hidden
Sent: Wednesday, July 29, 2009 11:06 PM
To: Narayanan, Sivaramasubramanian (R&T)
Cc: address@hidden
Subject: Re: [Discuss-gnuradio] Variable phase signal generator
On Wed, Jul 29, 2009 at 09:50:32AM +0530, Narayanan, Sivaramasubramanian
(R&T) wrote:
> Hi,
>
> How do I generate variable phase signals using GNU radio blocks? For
> example, I generate a reference Sine wave. I need another sine wave
> whose phase can be varied with respect to the reference sine wave. How
> can I do that?
You can do it using any of:
gr.vco_f, gr.frequency_modulator_fc or gr.phase_modulator_fc
http://gnuradio.org/doc/doxygen/gr__vco__f_8h-source.html
http://gnuradio.org/doc/doxygen/classgr__frequency__modulator__fc.html
http://gnuradio.org/doc/doxygen/classgr__phase__modulator__fc.html
> Thanking you,
> Regards,
> Sivaram
Eric