Submitted by: Submitted by abab
Views: 113
Words: 4839
Pages: 20
Category: Other Topics
Date Submitted: 09/08/2014 07:35 PM
GNU Radio Tutorials
Labs 1 – 5
Balint Seeber Ettus Research
Version 1.0 (18th April 2014)
Comments & suggetions welcome: balint@ettus.com @spenchdotnet
Lab 1
●
Open GNU Radio Companion:
– –
Open a Terminal/Console/Command Prompt Run 'gnuradio-companion'
Lab 1
Canvas (the flowgraph construction area)
Drag blocks from the Block list onto the canvas. Block list – Press CTRL+F to search for a name
Connect ports by clicking on the chosen port of one block, and then click on the port of the other block. You can delete connections by clicking on the connection's line and pressing the Delete key.
Log window – keep an eye on this, as well as your terminal!
Lab 1
Create a sine wave & inspect the generated samples with a (time-domain) Scope Sink
Lab 1
(double click)
'Options' block is used to set global parameters
Lab 1
Name of generated Python file Title of main GUI window, or name of Hierarchical block
GRC canvas size Type of code to generate (see next) How to start & stop the flowgraph Advanced: limit the number of samples output from each iteration of every block's work function If code is run as 'root' (e.g. with 'sudo') ask OS kernel to prioritise this process
Lab 1
GUI app using WX toolkit (use WX GUI blocks) GUI app using Qt toolkit (use Qt GUI blocks) Command-line app without GUI (text-based, run in a console) Create a Hierarchical block that will appear in the block list (a reusable component, not an app – use Pad Source/Sink blocks to expose ports, and Parameter blocks to expose configuration variables)
Lab 1
Automatically start flowgraph Do not automatically start flowgraph
Lab 1
Will automatically exit if/when done Pressing ENTER will exit
Lab 1
'samp_rate' is always added by default in a new flowgraph
Variable: a block that contains an arbitrary Python expression. You can refer to it in another block by its ID.
Lab 1
ID: (Python) variable name Value: arbitrary Python expression, e.g. (double click) 32000 (the default): an...