3 ###################################################
5 ## options for window size,
6 ## and flow graph building.
7 ###################################################
12 <import>from gnuradio import gr</import>
13 <import>from gnuradio.gr import firdes</import>
14 <import>#if $generate_options() == 'wx_gui'
15 from grc_gnuradio import wxgui as grc_wxgui
18 #if $generate_options() != 'hb'
19 from optparse import OptionParser
20 from gnuradio.eng_option import eng_option
21 from gnuradio import eng_notation
24 <callback>if $run: self.start()
25 else: self.stop(); self.wait()</callback>
31 <hide>#if $title() then 'none' else 'part'#</hide>
38 <hide>#if $author() then 'none' else 'part'#</hide>
41 <name>Description</name>
42 <key>description</key>
45 <hide>#if $description() then 'none' else 'part'#</hide>
48 <name>Window Size</name>
49 <key>window_size</key>
50 <value>1280, 1024</value>
51 <type>int_vector</type>
55 <name>Generate Options</name>
56 <key>generate_options</key>
59 <hide>#if $generate_options() == 'wx_gui' then 'part' else 'none'#</hide>
69 <name>Hier Block</name>
78 <hide>#if $generate_options() == 'hb' then 'none' else 'all'#</hide>
81 <name>Run Options</name>
82 <key>run_options</key>
85 <hide>#if $generate_options() == 'no_gui' then 'none' else 'all'#</hide>
87 <name>Run to Completion</name>
91 <name>Prompt for Exit</name>
101 #if $generate_options() == 'wx_gui'
112 <name>Autostart</name>
121 <name>Realtime Scheduling</name>
122 <key>realtime_scheduling</key>
125 <hide>#if $generate_options() == 'hb'
127 #elif $realtime_scheduling()
141 <check>len($window_size) == 2</check>
142 <check>300 <= $(window_size)[0] <= 4096</check>
143 <check>300 <= $(window_size)[1] <= 4096</check>
145 The options block sets special parameters for the flow graph. \
146 Only one option block is allowed per flow graph.
148 Title, author, and description parameters are for identification purposes.
150 The window size controls the dimensions of the flow graph editor. \
151 The window size (width, height) must be between (300, 300) and (4096, 4096).
153 The generate options controls the type of code generated. \
154 Non-graphical flow graphs should avoid using graphical sinks or graphical variable controls.
156 In a graphical application, \
157 run can be controlled by a variable to start and stop the flowgraph at runtime.
159 The id of this block determines the name of the generated file and the name of the class. \
160 For example, an id of my_block will generate the file my_block.py and class my_block(gr....
162 The category parameter determines the placement of the block in the block selection window. \
163 The category only applies when creating hier blocks. \
164 To put hier blocks into the root category, enter / for the category.