Optionsoptionsfrom gnuradio import grfrom gnuradio.gr import firdes#if $generate_options() == 'wx_gui'
from grc_gnuradio import wxgui as grc_wxgui
import wx
#end if
#if $generate_options() != 'hb'
from optparse import OptionParser
from gnuradio.eng_option import eng_option
from gnuradio import eng_notation
#end ifif $run: self.start()
else: self.stop(); self.wait()Titletitlestring#if $title() then 'none' else 'part'#Authorauthorstring#if $author() then 'none' else 'part'#Descriptiondescriptionstring#if $description() then 'none' else 'part'#Window Sizewindow_size1280, 1024int_vectorpartGenerate Optionsgenerate_optionswx_guienum#if $generate_options() == 'wx_gui' then 'part' else 'none'#CategorycategoryCustomstring#if $generate_options() == 'hb' then 'none' else 'all'#Run Optionsrun_optionspromptenum#if $generate_options() == 'no_gui' then 'none' else 'all'#RunrunTruebool
#if $generate_options() == 'wx_gui'
#if $run()
part
#else
none
#end if
#else
all
#end if
Realtime Schedulingrealtime_schedulingenum#if $generate_options() == 'hb'
all#slurp
#elif $realtime_scheduling()
none#slurp
#else
part#slurp
#end iflen($window_size) == 2300 <= $(window_size)[0] <= 4096300 <= $(window_size)[1] <= 4096
The options block sets special parameters for the flow graph. \
Only one option block is allowed per flow graph.
Title, author, and description parameters are for identification purposes.
The window size controls the dimensions of the flow graph editor. \
The window size (width, height) must be between (300, 300) and (4096, 4096).
The generate options controls the type of code generated. \
Non-graphical flow graphs should avoid using graphical sinks or graphical variable controls.
In a graphical application, \
run can be controlled by a variable to start and stop the flowgraph at runtime.
The id of this block determines the name of the generated file and the name of the class. \
For example, an id of my_block will generate the file my_block.py and class my_block(gr....
The category parameter determines the placement of the block in the block selection window. \
The category only applies when creating hier blocks. \
To put hier blocks into the root category, enter / for the category.