Hier Blocks and Parameters: Difference between revisions
Jump to navigation
Jump to search
Mattcarrick (talk | contribs) |
Mattcarrick (talk | contribs) |
||
Line 3: | Line 3: | ||
This tutorial describes how to create a hierarchical block, or ''Hier block'', in GRC. The previous tutorial, [[Creating_Your_First_Block|Creating Your First Block]], demonstrates how to create your first GNU Radio block using the ''Embedded Python Block''. | This tutorial describes how to create a hierarchical block, or ''Hier block'', in GRC. The previous tutorial, [[Creating_Your_First_Block|Creating Your First Block]], demonstrates how to create your first GNU Radio block using the ''Embedded Python Block''. | ||
== Creating | == Creating the 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. | 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. | ||
Line 25: | Line 25: | ||
* Start: ''-samp_rate/2'' | * Start: ''-samp_rate/2'' | ||
* Stop: ''samp_rate/2'' | * Stop: ''samp_rate/2'' | ||
Update the ''Low Pass Filter'' properties: | |||
* Cutoff Freq (Hz): ''samp_rate/4'' | |||
* Transition Width (Hz): ''samp_rate/8'' |
Revision as of 17:19, 12 January 2022
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 the 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:
- Signal Source
- Multiply
- Noise Source
- Low Pass Filter
- Throttle
- QT GUI Frequency Sink
- QT GUI Range
Connect the blocks:
Update the QT GUI Range properties:
- Id: frequency
- Default Value: 0
- Start: -samp_rate/2
- Stop: samp_rate/2
Update the Low Pass Filter properties:
- Cutoff Freq (Hz): samp_rate/4
- Transition Width (Hz): samp_rate/8