3 ###################################################
5 ## options for window size,
6 ## and flow graph building.
7 ###################################################
12 <import>from gnuradio import gr
13 #if $generate_options() == 'wx_gui'
14 from grc_gnuradio import wxgui as grc_wxgui
17 #if $generate_options() != 'hb'
18 from optparse import OptionParser
19 from gnuradio.eng_option import eng_option
23 <callback>self.start($autostart)</callback>
29 <hide>#if $title() then 'none' else 'part'#</hide>
36 <hide>#if $author() then 'none' else 'part'#</hide>
39 <name>Description</name>
40 <key>description</key>
43 <hide>#if $description() then 'none' else 'part'#</hide>
46 <name>Window Size</name>
47 <key>window_size</key>
48 <value>1280, 1024</value>
49 <type>int_vector</type>
53 <name>Generate Options</name>
54 <key>generate_options</key>
57 <hide>#if $generate_options() == 'wx_gui' then 'part' else 'none'#</hide>
67 <name>Hier Block</name>
76 <hide>#if $generate_options() == 'hb' then 'none' else 'all'#</hide>
79 <name>Autostart</name>
83 <hide>#if $generate_options() == 'wx_gui'
84 #if str($autostart) == 'True'
102 <name>Realtime Scheduling</name>
103 <key>realtime_scheduling</key>
106 <hide>#if $generate_options() == 'hb'
108 #elif $realtime_scheduling()
122 <check>len($window_size) == 2</check>
123 <check>300 <= $(window_size)[0] <= 4096</check>
124 <check>300 <= $(window_size)[1] <= 4096</check>
126 The options block sets special parameters for the flow graph. \
127 Only one option block is allowed per flow graph.
129 Title, author, and description parameters are for identification purposes.
131 The window size controls the dimensions of the flow graph editor. \
132 The window size (width, height) must be between (300, 300) and (4096, 4096).
134 The generate options controls the type of code generated. \
135 Non-graphical flow graphs should avoid using graphical sinks or graphical variable controls.
137 In a graphical application, \
138 autostart can be controlled by a variable to start and stop the flowgraph at runtime.
140 The id of this block determines the name of the generated file and the name of the class. \
141 For example, an id of my_block will generate the file my_block.py and class my_block(gr....
143 The category parameter determines the placement of the block in the block selection window. \
144 The category only applies when creating hier blocks. \
145 To put hier blocks into the root category, enter / for the category.