X-Git-Url: https://git.gag.com/?p=debian%2Fgnuradio;a=blobdiff_plain;f=grc%2Fblocks%2Fwxgui_fftsink2.xml;fp=grc%2Fblocks%2Fwxgui_fftsink2.xml;h=8df8f90d0192de8a5e21d8cdadcb6070c85ddd53;hp=faeca37e3217bea7f8db5860e29ad5117693c1c5;hb=8a9ddbb0675f9bfcc6e03b457fba6c79474a3693;hpb=82d471b9b4a8b389b5da44b19c69c36420828382 diff --git a/grc/blocks/wxgui_fftsink2.xml b/grc/blocks/wxgui_fftsink2.xml index faeca37e..8df8f90d 100644 --- a/grc/blocks/wxgui_fftsink2.xml +++ b/grc/blocks/wxgui_fftsink2.xml @@ -7,6 +7,7 @@ FFT Sink wxgui_fftsink2 + from gnuradio import window from gnuradio.wxgui import fftsink2 #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self' fftsink2.$(type.fcn)( @@ -15,6 +16,7 @@ fftsink2.$(type.fcn)( y_per_div=$y_per_div, y_divs=$y_divs, ref_level=$ref_level, + ref_scale=$ref_scale, sample_rate=$samp_rate, fft_size=$fft_size, fft_rate=$fft_rate, @@ -22,6 +24,12 @@ fftsink2.$(type.fcn)( avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#, title=$title, peak_hold=$peak_hold, +#if $win() + win=$win, +#end if +#if $win_size() + size=$win_size, +#end if ) #if not $grid_pos() $(parent).Add(self.$(id).win) @@ -102,6 +110,12 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos())))) 50 real + + Ref Scale (p2p) + ref_scale + 2.0 + real + FFT Size fft_size @@ -134,7 +148,7 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos())))) average False enum - #if $average() == 'True' then 'none' else 'part'# + part + + + + + + + + Window Size + win_size + + int_vector + #if $win_size() then 'none' else 'part'# + Grid Position grid_pos @@ -163,6 +215,7 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos())))) notebook + not $win_size or len($win_size) == 2 in $type @@ -170,6 +223,8 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos())))) Set Average Alpha to 0 for automatic setting. +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.