Hier Blocks and Parameters: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
A ''hier block'' is used to encapsulate and simplify multiple GNU Radio blocks into a single block. The example ''hier block'' will be a frequency shifter block which multiplies a ''Signal Source'' against an input signal.
A ''hier block'' is used to encapsulate and simplify multiple GNU Radio blocks into a single block. The example ''hier block'' will be a frequency shifter block which multiplies a ''Signal Source'' against an input signal.


The first step is creating the flowgraph:
The first step is creating the flowgraph. Drag and drop the following blocks into the workspace:
# ''Signal Source''
# ''Multiply''
# ''Throttle''
# ''QT GUI Frequency Sink''
# ''QT GUI Range''
 
Connect the blocks:

Revision as of 16:30, 12 January 2022

Template:TutorialNavigation

This tutorial describes how to create a hierarchical block, or Hier block, in GRC. The previous tutorial, Creating Your First Block, demonstrates how to create your first GNU Radio block using the Embedded Python Block.

Creating a Flowgraph

A hier block is used to encapsulate and simplify multiple GNU Radio blocks into a single block. The example hier block will be a frequency shifter block which multiplies a Signal Source against an input signal.

The first step is creating the flowgraph. Drag and drop the following blocks into the workspace:

  1. Signal Source
  2. Multiply
  3. Throttle
  4. QT GUI Frequency Sink
  5. QT GUI Range

Connect the blocks: