Scope Sink wxgui_scopesink2 from gnuradio.wxgui import scopesink2 from 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 if set_sample_rate($samp_rate) Type type complex enum Title title Scope Plot string Sample Rate samp_rate samp_rate real V Scale v_scale 0 real #if $v_scale() then 'none' else 'part'# V Offset v_offset 0 real #if $v_offset() then 'none' else 'part'# T Scale t_scale 0 real #if $t_scale() then 'none' else 'part'# AC Couple ac_couple False bool #if $ac_couple() then 'none' else 'part'# XY Mode xy_mode False enum #if $xy_mode() == 'True' then 'none' else 'part'# Num Inputs num_inputs 1 int Window Size win_size int_vector #if $win_size() then 'none' else 'part'# Grid Position grid_pos grid_pos Notebook notebook notebook not $win_size or len($win_size) == 2 not $xy_mode or '$type' == 'complex' or $num_inputs != 1 in $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.