Phase Shift: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(initial creation)
 
No edit summary
Line 1: Line 1:
This block will phase shift the input signal by the specified phase
This block will phase shift the input signal by the specified phase
by multiplying the input times a shift value: <br>
by multiplying the input times a shift value:  
gr_complex(cos(d_shift_in_radians),sin(d_shift_in_radians))<br><br>
 
<syntaxhighlight lang="c++">gr_complex(cos(d_shift_in_radians),sin(d_shift_in_radians))</syntaxhighlight>
Notes:<br>
Notes:<br>
If degrees are provided, the block automatically handles the conversion.<br>
If degrees are provided, the block automatically handles the conversion.
This block functions like a multiply const, but with the const limited to  
 
abs() == 1 to provide a constant phase shift.
 
This block functions like a [[Multiply Constant]], but with the constant set to e<sup>j·shift</sup>, i.e. the corresponding value on the complex unit circle.


== Parameters ==
== Parameters ==

Revision as of 16:58, 26 October 2023

This block will phase shift the input signal by the specified phase by multiplying the input times a shift value:

gr_complex(cos(d_shift_in_radians),sin(d_shift_in_radians))

Notes:
If degrees are provided, the block automatically handles the conversion.


This block functions like a Multiply Constant, but with the constant set to ej·shift, i.e. the corresponding value on the complex unit circle.

Parameters

(R): Run-time adjustable

Phase Shift
default: '0.0'
Units
options: ['Radians', 'Degrees']

Example Flowgraph

Source Files

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
blocks_phase_shift.block.yml