FFT Sink
wxgui_fftsink2
from gnuradio.wxgui import fftsink2
fftsink2.$(type.fcn)(
self.GetWin(),
baseband_freq=$baseband_freq,
y_per_div=$y_per_div,
y_divs=$y_divs,
ref_level=$ref_level,
sample_rate=$samp_rate,
fft_size=$fft_size,
fft_rate=$fft_rate,
average=$average,
avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
title=$title,
peak_hold=$peak_hold,
)
#set $grid_pos = $grid_pos()
#if not grid_pos
self.Add(self.$(id).win)
#else
self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end if
set_baseband_freq($baseband_freq)
set_sample_rate($samp_rate)
Type
type
complex
enum
Title
title
FFT Plot
string
Sample Rate
samp_rate
samp_rate
real
Baseband Freq
baseband_freq
0
real
Y per Div
y_per_div
10
enum
Y Divs
y_divs
10
int
Ref Level (dB)
ref_level
50
real
FFT Size
fft_size
1024
int
Refresh Rate
fft_rate
30
int
Peak Hold
peak_hold
False
enum
#if $peak_hold() == 'True' then 'none' else 'part'#
Average
average
False
enum
#if $average() == 'True' then 'none' else 'part'#
Average Alpha
avg_alpha
0
real
#if $average() == 'True' then 'none' else 'all'#
Grid Position
grid_pos
grid_pos
in
$type
Set Average Alpha to 0 for automatic setting.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.