Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a Hierarchical block with GNURadio Companion?

I am trying to create a Hierarchical block using the GNURadio Companion GUI. Answers I've found in other posts say to select the blocks you want to incorporate, then go to More -> Create Hier. Then a new screen is supposed to appear. However, doing "Create Hier" with any combinations of blocks selected seems to do nothing.

Am I doing something wrong, or is there a problem with my GRC?

like image 759
HoosierPhysics Avatar asked Oct 19 '16 01:10

HoosierPhysics


People also ask

What are GNU Radio blocks?

GNU Radio is a free software development toolkit that provides signal processing blocks to implement software-defined radios and signal-processing systems. It can be used with external RF hardware to create software-defined radios, or without hardware in a simulation-like environment.


1 Answers

It's very simple. You just start with a new flow graph in GRC, and use Pad Sources as input, and Pad Sinks as output.

If you want to let the user configure something, use a Parameter GRC block.

You must set the Generate Options in the Options block to Hier Block, and set a sensible ID there, too – don't stick with top_block, but use something (without spaces or -; it needs to work as a python name) that won't conflict with something else.

Here's an example:

a small hierarchical flow graph in GRC

You can then generate Generate button (or press [F5]), and then, after you've done a rescan of your block library with the refresh button Refresh Button you can find (and use) your new block in the Block Category you specified.

like image 124
Marcus Müller Avatar answered Oct 14 '22 12:10

Marcus Müller