[ Implementing a Phase Shift block ]

Hi Marcus,

wrote it, as I could not find it in the GRC.

If you want to do coarser phase shifts (large multiples of 180deg), you
can use a delay block.

Presently I’m calculating the delay between two synchronised signals
out of the USRP source (connected to a signal generator) by recording
samples and finding the offset between their first peak or

Now if we want to time-align them in real-time, how can we implement a
delay block that calculates the delay each time the grc flow is run and
the delay_value in the block accordingly so that they are time-aligned?
I don’t want to record the samples rather I’d like to know how to find
delay and shift any of the two signals so that they get aligned?


Normally, this kind of delay detection is done using cross-correlation
some more applicable variant thereof such as MRC). Note also that a
will give a frequency-dependent phase shift, so you may wish to use a
block rather than phase shift if your signal is broadband (although I
admit I don’t know what the phase shift block does internally).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs