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,
29 $(parent).Add(self.$(id).win)
31 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
33 <callback>set_sample_rate($samp_rate)</callback>
37 <value>complex</value>
42 <opt>fcn:scope_sink_c</opt>
47 <opt>fcn:scope_sink_f</opt>
53 <value>Scope Plot</value>
57 <name>Sample Rate</name>
59 <value>samp_rate</value>
67 <hide>#if $v_scale() then 'none' else 'part'#</hide>
74 <hide>#if $v_offset() then 'none' else 'part'#</hide>
81 <hide>#if $t_scale() then 'none' else 'part'#</hide>
84 <name>AC Couple</name>
88 <hide>#if $ac_couple() then 'none' else 'part'#</hide>
103 <hide>#if $xy_mode() == 'True' then 'none' else 'part'#</hide>
114 <name>Num Inputs</name>
115 <key>num_inputs</key>
120 <name>Window Size</name>
123 <type>int_vector</type>
124 <hide>#if $win_size() then 'none' else 'part'#</hide>
127 <name>Grid Position</name>
130 <type>grid_pos</type>
133 <name>Notebook</name>
136 <type>notebook</type>
139 <name>Trigger Mode</name>
144 <key>gr.gr_TRIG_MODE_AUTO</key>
148 <key>gr.gr_TRIG_MODE_NORM</key>
152 <key>gr.gr_TRIG_MODE_FREE</key>
155 <name>Stripchart</name>
156 <key>gr.gr_TRIG_MODE_STRIPCHART</key>
159 <check>not $win_size or len($win_size) == 2</check>
160 <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
164 <nports>$num_inputs</nports>
167 Set the V Scale to 0 for the scope to auto-scale.
169 Set the T Scale to 0 for automatic setting.
171 XY Mode allows the scope to initialize as an XY plotter.
173 Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
175 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
177 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.