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,
28 $(parent).Add(self.$(id).win)
30 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
32 <callback>set_sample_rate($samp_rate)</callback>
36 <value>complex</value>
41 <opt>fcn:scope_sink_c</opt>
46 <opt>fcn:scope_sink_f</opt>
52 <value>Scope Plot</value>
56 <name>Sample Rate</name>
58 <value>samp_rate</value>
66 <hide>#if $v_scale() then 'none' else 'part'#</hide>
73 <hide>#if $v_offset() then 'none' else 'part'#</hide>
80 <hide>#if $t_scale() then 'none' else 'part'#</hide>
83 <name>AC Couple</name>
87 <hide>#if $ac_couple() then 'none' else 'part'#</hide>
102 <hide>#if $xy_mode() == 'True' then 'none' else 'part'#</hide>
113 <name>Num Inputs</name>
114 <key>num_inputs</key>
119 <name>Window Size</name>
122 <type>int_vector</type>
123 <hide>#if $win_size() then 'none' else 'part'#</hide>
126 <name>Grid Position</name>
129 <type>grid_pos</type>
132 <name>Notebook</name>
135 <type>notebook</type>
137 <check>not $win_size or len($win_size) == 2</check>
138 <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
142 <nports>$num_inputs</nports>
145 Set the V Scale to 0 for the scope to auto-scale.
147 Set the T Scale to 0 for automatic setting.
149 XY Mode allows the scope to initialize as an XY plotter.
151 Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
153 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
155 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.