Scope Sinkwxgui_scopesink2from gnuradio.wxgui import scopesink2from gnuradio import gr#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
scopesink2.$(type.fcn)(
$(parent).GetWin(),
title=$title,
sample_rate=$samp_rate,
v_scale=$v_scale,
v_offset=$v_offset,
t_scale=$t_scale,
ac_couple=$ac_couple,
xy_mode=$xy_mode,
num_inputs=$num_inputs,
#if $win_size()
size=$win_size,
#end if
)
#if not $grid_pos()
$(parent).Add(self.$(id).win)
#else
$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
#end ifset_sample_rate($samp_rate)TypetypecomplexenumTitletitleScope PlotstringSample Ratesamp_ratesamp_raterealV Scalev_scale0real#if $v_scale() then 'none' else 'part'#V Offsetv_offset0real#if $v_offset() then 'none' else 'part'#T Scalet_scale0real#if $t_scale() then 'none' else 'part'#AC Coupleac_coupleFalsebool#if $ac_couple() then 'none' else 'part'#XY Modexy_modeFalseenum#if $xy_mode() == 'True' then 'none' else 'part'#Num Inputsnum_inputs1intWindow Sizewin_sizeint_vector#if $win_size() then 'none' else 'part'#Grid Positiongrid_posgrid_posNotebooknotebooknotebooknot $win_size or len($win_size) == 2not $xy_mode or '$type' == 'complex' or $num_inputs != 1in$type$num_inputs
Set the V Scale to 0 for the scope to auto-scale.
Set the T Scale to 0 for automatic setting.
XY Mode allows the scope to initialize as an XY plotter.
Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.