]> git.gag.com Git - debian/gnuradio/blobdiff - grc/blocks/wxgui_histosink2.xml
Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / wxgui_histosink2.xml
diff --git a/grc/blocks/wxgui_histosink2.xml b/grc/blocks/wxgui_histosink2.xml
new file mode 100644 (file)
index 0000000..454a493
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Histogram Sink
+###################################################
+ -->
+<block>
+       <name>Histo Sink</name>
+       <key>wxgui_histosink2</key>
+       <import>from gnuradio.wxgui import histosink_gl</import>
+       <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
+histosink_gl.histo_sink_f(
+       $(parent).GetWin(),
+       title=$title,
+       num_bins=$num_bins,
+       frame_size=$frame_size,
+)
+#if not $grid_pos()
+$(parent).Add(self.$(id).win)
+#else
+$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
+#end if</make>
+       <callback>set_num_bins($num_bins)</callback>
+       <callback>set_frame_size($frame_size)</callback>
+       <param>
+               <name>Title</name>
+               <key>title</key>
+               <value>Histogram Plot</value>
+               <type>string</type>
+       </param>
+       <param>
+               <name>Num Bins</name>
+               <key>num_bins</key>
+               <value>27</value>
+               <type>int</type>
+       </param>
+       <param>
+               <name>Frame Size</name>
+               <key>frame_size</key>
+               <value>1000</value>
+               <type>int</type>
+       </param>
+       <param>
+               <name>Grid Position</name>
+               <key>grid_pos</key>
+               <value></value>
+               <type>grid_pos</type>
+       </param>
+       <param>
+               <name>Notebook</name>
+               <key>notebook</key>
+               <value></value>
+               <type>notebook</type>
+       </param>
+       <sink>
+               <name>in</name>
+               <type>float</type>
+       </sink>
+       <doc>
+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.
+       </doc>
+</block>