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,
t_scale=$t_scale,
ac_couple=$ac_couple,
xy_mode=$xy_mode,
num_inputs=$num_inputs,
)
#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_scale0realT Scalet_scale0realAC Coupleac_coupleFalseenum#if $ac_couple() == 'True' then 'none' else 'part'#XY Modexy_modeFalseenum#if $xy_mode() == 'True' then 'none' else 'part'#Num Inputsnum_inputs1intGrid Positiongrid_posgrid_posNotebooknotebooknotebooknot $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.
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.