From 7ed83c72dbd079a50a421661a874c3ac94a34bd6 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 5 Dec 2010 17:21:07 -0500 Subject: grc: added qtgui support to grc (just added sink) --- grc/blocks/qtgui_sink_x.xml | 123 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 grc/blocks/qtgui_sink_x.xml (limited to 'grc/blocks/qtgui_sink_x.xml') diff --git a/grc/blocks/qtgui_sink_x.xml b/grc/blocks/qtgui_sink_x.xml new file mode 100644 index 000000000..c9fa12eef --- /dev/null +++ b/grc/blocks/qtgui_sink_x.xml @@ -0,0 +1,123 @@ + + + + QT GUI Sink + qtgui_sink_x + from gnuradio.qtgui import qtgui + from gnuradio.gr import firdes + import sip + qtgui.$(type.fcn)( + $fftsize, \#fftsize + $wintype, \#wintype + $fc, \#fc + $bw, \#bw + $name, \#name + $plotfreq, \#plotfreq + $plotwaterfall, \#plotwaterfall + $plotwaterfall3d, \#plotwaterfall3d + $plottime, \#plottime + $plotconst, \#plotconst +) +self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), QtGui.QWidget) +self._$(id)_win.show() + set_frequency_range($fc, $bw) + + Type + type + complex + enum + + + + + Name + name + QT GUI Plot + string + + + FFT Size + fftsize + 1024 + int + + + Window Type + wintype + firdes.WIN_BLACKMAN_hARRIS + int + part + + + + Center Frequency (Hz) + fc + 0 + real + + + Bandwidth (Hz) + bw + samp_rate + real + + + Plot Frequency + plotfreq + True + bool + part + + + + + Plot Waterfall + plotwaterfall + True + bool + part + + + + + Plot Waterfall 3D + plotwaterfall3d + True + bool + part + + + + + Plot Time + plottime + True + bool + part + + + + + Plot Const + plotconst + True + bool + part + + + + + in + $type + $num_inputs + + + + -- cgit