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,
21 num_inputs=$num_inputs,
27 $(parent).Add(self.$(id).win)
29 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
31 <callback>set_sample_rate($samp_rate)</callback>
35 <value>complex</value>
40 <opt>fcn:scope_sink_c</opt>
45 <opt>fcn:scope_sink_f</opt>
51 <value>Scope Plot</value>
55 <name>Sample Rate</name>
57 <value>samp_rate</value>
73 <name>AC Couple</name>
77 <hide>#if $ac_couple() == 'True' then 'none' else 'part'#</hide>
92 <hide>#if $xy_mode() == 'True' then 'none' else 'part'#</hide>
103 <name>Num Inputs</name>
104 <key>num_inputs</key>
109 <name>Window Size</name>
112 <type>int_vector</type>
113 <hide>#if $win_size() then 'none' else 'part'#</hide>
116 <name>Grid Position</name>
119 <type>grid_pos</type>
122 <name>Notebook</name>
125 <type>notebook</type>
127 <check>not $win_size or len($win_size) == 2</check>
128 <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
132 <nports>$num_inputs</nports>
135 Set the V Scale to 0 for the scope to auto-scale.
137 Set the T Scale to 0 for automatic setting.
139 XY Mode allows the scope to initialize as an XY plotter.
141 Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
143 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
145 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.