[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: qtgui: Fixed vector sink example (bl
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: qtgui: Fixed vector sink example (block not showing) |
Date: |
Sun, 6 Sep 2015 01:19:35 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit b0d3b5a085070e5ad35e6f2f9a71435da3cab85f
Author: Martin Braun <address@hidden>
Date: Fri Sep 4 13:24:34 2015 -0700
qtgui: Fixed vector sink example (block not showing)
---
gr-qtgui/examples/qtgui_vector_sink_example.grc | 565 +++++++++++++-----------
1 file changed, 301 insertions(+), 264 deletions(-)
diff --git a/gr-qtgui/examples/qtgui_vector_sink_example.grc
b/gr-qtgui/examples/qtgui_vector_sink_example.grc
index 4ad897d..da10209 100644
--- a/gr-qtgui/examples/qtgui_vector_sink_example.grc
+++ b/gr-qtgui/examples/qtgui_vector_sink_example.grc
@@ -1,22 +1,27 @@
-<?xml version='1.0' encoding='ASCII'?>
+<?xml version='1.0' encoding='utf-8'?>
+<?grc format='1' created='3.7.8'?>
<flow_graph>
<timestamp>Sun Aug 17 18:43:15 2014</timestamp>
<block>
<key>options</key>
<param>
- <key>id</key>
- <value>qt_example_vector_sink</value>
+ <key>author</key>
+ <value></value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>title</key>
- <value>QT GUI Vector Sink Example</value>
+ <key>window_size</key>
+ <value>1280, 1024</value>
</param>
<param>
- <key>author</key>
+ <key>category</key>
+ <value>Custom</value>
+ </param>
+ <param>
+ <key>comment</key>
<value></value>
</param>
<param>
@@ -24,24 +29,24 @@
<value></value>
</param>
<param>
- <key>window_size</key>
- <value>1280, 1024</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>generate_options</key>
- <value>qt_gui</value>
+ <key>_coordinate</key>
+ <value>(-1, 0)</value>
</param>
<param>
- <key>category</key>
- <value>Custom</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>run_options</key>
- <value>prompt</value>
+ <key>generate_options</key>
+ <value>qt_gui</value>
</param>
<param>
- <key>run</key>
- <value>True</value>
+ <key>id</key>
+ <value>qt_example_vector_sink</value>
</param>
<param>
<key>max_nouts</key>
@@ -52,424 +57,467 @@
<value></value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>run_options</key>
+ <value>prompt</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(-1, 0)</value>
+ <key>run</key>
+ <value>True</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>thread_safe_setters</key>
+ <value></value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>QT GUI Vector Sink Example</value>
</param>
</block>
<block>
<key>variable</key>
<param>
- <key>id</key>
- <value>veclen</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>value</key>
- <value>512</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
<key>_coordinate</key>
- <value>(183, 0)</value>
+ <value>(272, -5)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>variable</key>
<param>
<key>id</key>
<value>samp_rate</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
<key>value</key>
<value>32000</value>
</param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(-1, 87)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
</block>
<block>
- <key>blocks_throttle</key>
+ <key>variable</key>
<param>
- <key>id</key>
- <value>blocks_throttle_0</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>type</key>
- <value>float</value>
+ <key>_coordinate</key>
+ <value>(183, 0)</value>
</param>
<param>
- <key>samples_per_second</key>
- <value>samp_rate</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>vlen</key>
+ <key>id</key>
<value>veclen</value>
</param>
<param>
- <key>ignoretag</key>
- <value>True</value>
+ <key>value</key>
+ <value>512</value>
+ </param>
+ </block>
+ <block>
+ <key>analog_fastnoise_source_x</key>
+ <param>
+ <key>amp</key>
+ <value>1</value>
</param>
<param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(199, 180)</value>
+ <value>(-1, 293)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>blocks_add_xx</key>
<param>
<key>id</key>
- <value>blocks_add_xx_0</value>
+ <value>analog_fastnoise_source_x_0</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>minoutbuf</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>noise_type</key>
+ <value>analog.GR_GAUSSIAN</value>
</param>
<param>
<key>type</key>
<value>float</value>
</param>
<param>
- <key>num_inputs</key>
- <value>2</value>
+ <key>seed</key>
+ <value>0</value>
</param>
<param>
- <key>vlen</key>
- <value>veclen</value>
+ <key>samples</key>
+ <value>8192</value>
</param>
+ </block>
+ <block>
+ <key>blocks_add_xx</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(382, 186)</value>
+ <value>(456, 145)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>blocks_vector_source_x</key>
<param>
<key>id</key>
- <value>blocks_vector_source_x_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
+ <value>blocks_add_xx_0</value>
</param>
<param>
<key>type</key>
<value>float</value>
</param>
<param>
- <key>vector</key>
- <value>range(veclen)</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>tags</key>
- <value>[]</value>
+ <key>minoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>repeat</key>
- <value>True</value>
+ <key>num_inputs</key>
+ <value>2</value>
</param>
<param>
<key>vlen</key>
<value>veclen</value>
</param>
+ </block>
+ <block>
+ <key>blocks_message_debug</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(-1, 165)</value>
+ <value>(928, 161)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
+ <param>
+ <key>id</key>
+ <value>blocks_message_debug_0</value>
+ </param>
</block>
<block>
- <key>analog_fastnoise_source_x</key>
+ <key>blocks_stream_to_vector</key>
<param>
- <key>id</key>
- <value>analog_fastnoise_source_x_0</value>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
+ <key>_coordinate</key>
+ <value>(216, 315)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>blocks_stream_to_vector_0</value>
+ </param>
+ <param>
<key>type</key>
<value>float</value>
</param>
<param>
- <key>noise_type</key>
- <value>analog.GR_GAUSSIAN</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>amp</key>
- <value>1</value>
+ <key>minoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>seed</key>
- <value>0</value>
+ <key>num_items</key>
+ <value>veclen</value>
</param>
<param>
- <key>samples</key>
- <value>8192</value>
+ <key>vlen</key>
+ <value>1</value>
</param>
+ </block>
+ <block>
+ <key>blocks_throttle</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(-1, 293)</value>
+ <value>(208, 131)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>blocks_stream_to_vector</key>
<param>
<key>id</key>
- <value>blocks_stream_to_vector_0</value>
+ <value>blocks_throttle_0</value>
</param>
<param>
- <key>_enabled</key>
+ <key>ignoretag</key>
<value>True</value>
</param>
<param>
- <key>type</key>
- <value>float</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>num_items</key>
- <value>veclen</value>
+ <key>minoutbuf</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>samples_per_second</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
</param>
<param>
<key>vlen</key>
- <value>1</value>
+ <value>veclen</value>
</param>
+ </block>
+ <block>
+ <key>blocks_vector_source_x</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(197, 316)</value>
+ <value>(0, 115)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>qtgui_vector_sink_x</key>
<param>
<key>id</key>
- <value>qtgui_vector_sink_x_0</value>
+ <value>blocks_vector_source_x_0</value>
</param>
<param>
- <key>_enabled</key>
+ <key>maxoutbuf</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>minoutbuf</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>repeat</key>
<value>True</value>
</param>
<param>
- <key>name</key>
- <value>"A noisy line"</value>
+ <key>tags</key>
+ <value>[]</value>
</param>
<param>
<key>vlen</key>
<value>veclen</value>
</param>
<param>
- <key>x_start</key>
- <value>0</value>
+ <key>vector</key>
+ <value>range(veclen)</value>
</param>
+ </block>
+ <block>
+ <key>qtgui_vector_sink_f</key>
<param>
- <key>x_step</key>
- <value>1.0/veclen</value>
+ <key>autoscale</key>
+ <value>False</value>
</param>
<param>
- <key>x_axis_label</key>
- <value>"x-Axis"</value>
+ <key>average</key>
+ <value>1.0</value>
</param>
<param>
- <key>y_axis_label</key>
- <value>"y-Axis"</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>x_units</key>
- <value>"x"</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>y_units</key>
- <value>"y"</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>ref_level</key>
- <value>.5*veclen</value>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(640, 91)</value>
+ </param>
+ <param>
+ <key>gui_hint</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
<key>grid</key>
<value>True</value>
</param>
<param>
- <key>autoscale</key>
- <value>False</value>
+ <key>id</key>
+ <value>qtgui_vector_sink_f_0</value>
</param>
<param>
- <key>average</key>
+ <key>alpha1</key>
<value>1.0</value>
</param>
<param>
- <key>ymin</key>
- <value>0</value>
+ <key>color1</key>
+ <value>"blue"</value>
</param>
<param>
- <key>ymax</key>
- <value>veclen</value>
+ <key>label1</key>
+ <value></value>
</param>
<param>
- <key>nconnections</key>
+ <key>width1</key>
<value>1</value>
</param>
<param>
- <key>update_time</key>
- <value>0.10</value>
- </param>
- <param>
- <key>gui_hint</key>
- <value></value>
+ <key>alpha10</key>
+ <value>1.0</value>
</param>
<param>
- <key>showports</key>
- <value>False</value>
+ <key>color10</key>
+ <value>"dark blue"</value>
</param>
<param>
- <key>label1</key>
- <value>Up</value>
+ <key>label10</key>
+ <value></value>
</param>
<param>
- <key>width1</key>
+ <key>width10</key>
<value>1</value>
</param>
<param>
- <key>color1</key>
- <value>"blue"</value>
+ <key>alpha2</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha1</key>
- <value>1.0</value>
+ <key>color2</key>
+ <value>"red"</value>
</param>
<param>
<key>label2</key>
@@ -480,12 +528,12 @@
<value>1</value>
</param>
<param>
- <key>color2</key>
- <value>"red"</value>
+ <key>alpha3</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha2</key>
- <value>1.0</value>
+ <key>color3</key>
+ <value>"green"</value>
</param>
<param>
<key>label3</key>
@@ -496,12 +544,12 @@
<value>1</value>
</param>
<param>
- <key>color3</key>
- <value>"green"</value>
+ <key>alpha4</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha3</key>
- <value>1.0</value>
+ <key>color4</key>
+ <value>"black"</value>
</param>
<param>
<key>label4</key>
@@ -512,12 +560,12 @@
<value>1</value>
</param>
<param>
- <key>color4</key>
- <value>"black"</value>
+ <key>alpha5</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha4</key>
- <value>1.0</value>
+ <key>color5</key>
+ <value>"cyan"</value>
</param>
<param>
<key>label5</key>
@@ -528,12 +576,12 @@
<value>1</value>
</param>
<param>
- <key>color5</key>
- <value>"cyan"</value>
+ <key>alpha6</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha5</key>
- <value>1.0</value>
+ <key>color6</key>
+ <value>"magenta"</value>
</param>
<param>
<key>label6</key>
@@ -544,12 +592,12 @@
<value>1</value>
</param>
<param>
- <key>color6</key>
- <value>"magenta"</value>
+ <key>alpha7</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha6</key>
- <value>1.0</value>
+ <key>color7</key>
+ <value>"yellow"</value>
</param>
<param>
<key>label7</key>
@@ -560,12 +608,12 @@
<value>1</value>
</param>
<param>
- <key>color7</key>
- <value>"yellow"</value>
+ <key>alpha8</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha7</key>
- <value>1.0</value>
+ <key>color8</key>
+ <value>"dark red"</value>
</param>
<param>
<key>label8</key>
@@ -576,12 +624,12 @@
<value>1</value>
</param>
<param>
- <key>color8</key>
- <value>"dark red"</value>
+ <key>alpha9</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha8</key>
- <value>1.0</value>
+ <key>color9</key>
+ <value>"dark green"</value>
</param>
<param>
<key>label9</key>
@@ -592,113 +640,102 @@
<value>1</value>
</param>
<param>
- <key>color9</key>
- <value>"dark green"</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>alpha9</key>
- <value>1.0</value>
+ <key>minoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>label10</key>
- <value></value>
+ <key>name</key>
+ <value>"A noisy line"</value>
</param>
<param>
- <key>width10</key>
+ <key>nconnections</key>
<value>1</value>
</param>
<param>
- <key>color10</key>
- <value>"dark blue"</value>
- </param>
- <param>
- <key>alpha10</key>
- <value>1.0</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
+ <key>ref_level</key>
+ <value>0</value>
</param>
<param>
- <key>affinity</key>
- <value></value>
+ <key>showports</key>
+ <value>False</value>
</param>
<param>
- <key>minoutbuf</key>
- <value>0</value>
+ <key>update_time</key>
+ <value>0.10</value>
</param>
<param>
- <key>maxoutbuf</key>
- <value>0</value>
+ <key>vlen</key>
+ <value>veclen</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(566, 136)</value>
+ <key>x_axis_label</key>
+ <value>"x-Axis"</value>
</param>
<param>
- <key>_rotation</key>
+ <key>x_start</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>blocks_message_debug</key>
<param>
- <key>id</key>
- <value>blocks_message_debug_0</value>
+ <key>x_step</key>
+ <value>1.0/veclen</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>x_units</key>
+ <value>""</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>ymax</key>
+ <value>512</value>
</param>
<param>
- <key>affinity</key>
- <value></value>
+ <key>ymin</key>
+ <value>0</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(871, 204)</value>
+ <key>y_axis_label</key>
+ <value>"y-Axis"</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>y_units</key>
+ <value>""</value>
</param>
</block>
<connection>
- <source_block_id>blocks_throttle_0</source_block_id>
- <sink_block_id>blocks_add_xx_0</sink_block_id>
+ <source_block_id>analog_fastnoise_source_x_0</source_block_id>
+ <sink_block_id>blocks_stream_to_vector_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>blocks_vector_source_x_0</source_block_id>
- <sink_block_id>blocks_throttle_0</sink_block_id>
+ <source_block_id>blocks_add_xx_0</source_block_id>
+ <sink_block_id>qtgui_vector_sink_f_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>analog_fastnoise_source_x_0</source_block_id>
- <sink_block_id>blocks_stream_to_vector_0</sink_block_id>
+ <source_block_id>blocks_stream_to_vector_0</source_block_id>
+ <sink_block_id>blocks_add_xx_0</sink_block_id>
<source_key>0</source_key>
- <sink_key>0</sink_key>
+ <sink_key>1</sink_key>
</connection>
<connection>
- <source_block_id>blocks_stream_to_vector_0</source_block_id>
+ <source_block_id>blocks_throttle_0</source_block_id>
<sink_block_id>blocks_add_xx_0</sink_block_id>
<source_key>0</source_key>
- <sink_key>1</sink_key>
+ <sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>blocks_add_xx_0</source_block_id>
- <sink_block_id>qtgui_vector_sink_x_0</sink_block_id>
+ <source_block_id>blocks_vector_source_x_0</source_block_id>
+ <sink_block_id>blocks_throttle_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>qtgui_vector_sink_x_0</source_block_id>
+ <source_block_id>qtgui_vector_sink_f_0</source_block_id>
<sink_block_id>blocks_message_debug_0</sink_block_id>
<source_key>xval</source_key>
<sink_key>print</sink_key>