summaryrefslogtreecommitdiff
path: root/gr-qtgui/grc
diff options
context:
space:
mode:
authorJulien Olivain2012-12-11 10:12:39 -0500
committerTom Rondeau2012-12-11 10:12:39 -0500
commitd3ad5ccae7f261654508d93815cb7e3d2112c4c5 (patch)
tree30b28b6358cb7afd8be5d4398b755882200b0d54 /gr-qtgui/grc
parent933af79833a0d5a44f479ba6b68a390a10d5e7c0 (diff)
downloadgnuradio-d3ad5ccae7f261654508d93815cb7e3d2112c4c5.tar.gz
gnuradio-d3ad5ccae7f261654508d93815cb7e3d2112c4c5.tar.bz2
gnuradio-d3ad5ccae7f261654508d93815cb7e3d2112c4c5.zip
qtgui: adds parameter in qtgui sink's GRC block to set the update rate.
Diffstat (limited to 'gr-qtgui/grc')
-rw-r--r--gr-qtgui/grc/qtgui_sink_x.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
index 83d6ec287..6488ac04c 100644
--- a/gr-qtgui/grc/qtgui_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -24,6 +24,7 @@ qtgui.$(type.fcn)(
$plottime, \#plottime
$plotconst, \#plotconst
)
+self.$(id).set_update_time(1.0 / $rate)
self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget)
$(gui_hint()($win))</make>
<callback>set_frequency_range($fc, $bw)</callback>
@@ -133,6 +134,12 @@ $(gui_hint()($win))</make>
<type>gui_hint</type>
<hide>part</hide>
</param>
+ <param>
+ <name>Update Rate</name>
+ <key>rate</key>
+ <value>10</value>
+ <type>real</type>
+ </param>
<sink>
<name>in</name>
<type>$type</type>