discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Sinewave signal source with phase variation


From: Kevin Reid
Subject: Re: [Discuss-gnuradio] Sinewave signal source with phase variation
Date: Mon, 17 Dec 2018 08:33:00 -0800

On Mon, Dec 17, 2018 at 5:36 AM xavier yvars <address@hidden> wrote:
x(t) = a*sin(w1t +  deltaphi*sin(w2t))

With the "source block" it is not possible, you can just set a fixed frequency.

This is phase modulation of a carrier. You can implement it by multiplying (multiply block) the carrier (signal source) with the output of a phase modulator fed by the modulation signal which in this case is a sinusoid.

Example flow graph in GRC (numbers not particularly sensible, just demonstrating it works):

image.png

Notes:
  • Your "deltaphi" parameter can be put into either the Amplitude of the signal source or the Sensitivity of the phase modulator; it's equivalent.
  • For maximum computational efficiency, replace the carrier source and Multiply block with a Rotator block. However, it requires the frequency to be expressed in radians per sample and so is not as convenient for casual use.
  • The output is complex (analytic). If you want real output, just use a complex to float block after the multiplication.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]