3 ###################################################
5 ###################################################
8 <name>Scope Sink</name>
9 <key>wxgui_scopesink2</key>
10 <import>from gnuradio.wxgui import scopesink2</import>
11 <import>from gnuradio import gr</import>
12 <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
13 scopesink2.$(type.fcn)(
16 sample_rate=$samp_rate,
22 num_inputs=$num_inputs,
24 y_axis_label=$y_axis_label,
30 $(parent).Add(self.$(id).win)
32 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
34 <callback>set_sample_rate($samp_rate)</callback>
38 <value>complex</value>
43 <opt>fcn:scope_sink_c</opt>
48 <opt>fcn:scope_sink_f</opt>
54 <value>Scope Plot</value>
58 <name>Sample Rate</name>
60 <value>samp_rate</value>
68 <hide>#if $v_scale() then 'none' else 'part'#</hide>
75 <hide>#if $v_offset() then 'none' else 'part'#</hide>
82 <hide>#if $t_scale() then 'none' else 'part'#</hide>
85 <name>AC Couple</name>
89 <hide>#if $ac_couple() then 'none' else 'part'#</hide>
104 <hide>#if $xy_mode() == 'True' then 'none' else 'part'#</hide>
115 <name>Num Inputs</name>
116 <key>num_inputs</key>
121 <name>Window Size</name>
124 <type>int_vector</type>
125 <hide>#if $win_size() then 'none' else 'part'#</hide>
128 <name>Grid Position</name>
131 <type>grid_pos</type>
134 <name>Notebook</name>
137 <type>notebook</type>
140 <name>Trigger Mode</name>
145 <key>gr.gr_TRIG_MODE_AUTO</key>
149 <key>gr.gr_TRIG_MODE_NORM</key>
153 <key>gr.gr_TRIG_MODE_FREE</key>
156 <name>Stripchart</name>
157 <key>gr.gr_TRIG_MODE_STRIPCHART</key>
161 <name>Y Axis Label</name>
162 <key>y_axis_label</key>
163 <value>Counts</value>
166 <check>not $win_size or len($win_size) == 2</check>
167 <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
171 <nports>$num_inputs</nports>
174 Set the V Scale to 0 for the scope to auto-scale.
176 Set the T Scale to 0 for automatic setting.
178 XY Mode allows the scope to initialize as an XY plotter.
180 Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
182 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
184 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.