From d52c462e5fd3eae7d00505a64a013e811d43234c Mon Sep 17 00:00:00 2001
From: jcorgan
Date: Sat, 23 Aug 2008 02:26:15 +0000
Subject: Merged changeset r9285:9377 from jblum/grc into trunk, with distcheck
fixes and local modifications.
Integrates previously separate GNU Radio Companion into top-level component
'grc'. (Josh Blum)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9378 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/Makefile.am | 26 ++
grc/examples/simple/ber_simulation.grc | 540 +++++++++++++++++++++++++++++++++
2 files changed, 566 insertions(+)
create mode 100644 grc/examples/simple/Makefile.am
create mode 100644 grc/examples/simple/ber_simulation.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/Makefile.am b/grc/examples/simple/Makefile.am
new file mode 100644
index 000000000..a2fcd614e
--- /dev/null
+++ b/grc/examples/simple/Makefile.am
@@ -0,0 +1,26 @@
+#
+# Copyright 2008 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+#
+
+include $(top_srcdir)/grc/Makefile.common
+
+datadir = $(grc_examples_prefix)/simple
+
+EXTRA_DIST = ber_simulation.grc
diff --git a/grc/examples/simple/ber_simulation.grc b/grc/examples/simple/ber_simulation.grc
new file mode 100644
index 000000000..0e4ce64ed
--- /dev/null
+++ b/grc/examples/simple/ber_simulation.grc
@@ -0,0 +1,540 @@
+
+
+ Thu Jul 24 14:28:06 2008
+
+ options
+
+ id
+ ber_sim
+
+
+ _enabled
+ True
+
+
+ title
+ BER Simulation
+
+
+ author
+ Example
+
+
+ description
+ Adjust the noise and constellation... see what happens!
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ _coordinate
+ (16, 10)
+
+
+ _rotation
+ 0
+
+
+
+ gr_add_vxx
+
+ id
+ gr_add_vxx
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ num_inputs
+ 2
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (652, 395)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_constellationsink2
+
+ id
+ wxgui_constellationsink2
+
+
+ _enabled
+ True
+
+
+ title
+ "Constellation: "+str(const)
+
+
+ samp_rate
+ samp_rate
+
+
+ frame_decim
+ 15
+
+
+ marker
+ set_format_plus
+
+
+ grid_pos
+ 2, 0, 1, 1
+
+
+ _coordinate
+ (907, 334)
+
+
+ _rotation
+ 0
+
+
+
+ gr_noise_source_x
+
+ id
+ gr_noise_source_x
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ noise_type
+ gr.GR_GAUSSIAN
+
+
+ amp
+ noise
+
+
+ seed
+ 42
+
+
+ _coordinate
+ (235, 379)
+
+
+ _rotation
+ 0
+
+
+
+ gr_chunks_to_symbols_xx
+
+ id
+ gr_chunks_to_symbols_xx
+
+
+ _enabled
+ True
+
+
+ in_type
+ byte
+
+
+ out_type
+ complex
+
+
+ symbol_table
+ const
+
+
+ dimension
+ 1
+
+
+ _coordinate
+ (360, 237)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_numbersink2
+
+ id
+ wxgui_numbersink2
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ title
+ BER
+
+
+ units
+ %
+
+
+ samp_rate
+ samp_rate
+
+
+ base_value
+ 0.0
+
+
+ min_value
+ 0.0
+
+
+ max_value
+ 1.0
+
+
+ factor
+ 100
+
+
+ decimal_places
+ 4
+
+
+ ref_level
+ 0
+
+
+ number_rate
+ 15
+
+
+ avg_alpha
+ 0
+
+
+ options
+ none
+
+
+ show_gauge
+ False
+
+
+ grid_pos
+ 1, 0, 1, 1
+
+
+ _coordinate
+ (1062, 11)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle
+
+
+ _enabled
+ True
+
+
+ type
+ byte
+
+
+ samples_per_second
+ samp_rate
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (397, 27)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_error_rate
+
+ id
+ blks2_error_rate
+
+
+ _enabled
+ True
+
+
+ type
+ "BER"
+
+
+ win_size
+ 1000000
+
+
+ bits_per_symbol
+ int(math.log(len(const))/math.log(2))
+
+
+ _coordinate
+ (670, 41)
+
+
+ _rotation
+ 0
+
+
+
+ gr_constellation_decoder_cb
+
+ id
+ gr_constellation_decoder_cb
+
+
+ _enabled
+ True
+
+
+ sym_position
+ const
+
+
+ sym_value_out
+ range(len(const))
+
+
+ _coordinate
+ (708, 224)
+
+
+ _rotation
+ 0
+
+
+
+ random_source_x
+
+ id
+ random_source_x
+
+
+ _enabled
+ True
+
+
+ type
+ byte
+
+
+ min
+ 0
+
+
+ max
+ len(const)
+
+
+ num_samps
+ 1000000
+
+
+ repeat
+ False
+
+
+ _coordinate
+ (15, 244)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ noise
+
+
+ _enabled
+ True
+
+
+ value
+ .25
+
+
+ _coordinate
+ (18, 386)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ const
+
+
+ _enabled
+ True
+
+
+ value
+ 1+1j, 1-1j, -1-1j, -1+1j
+
+
+ _coordinate
+ (16, 461)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 50e3
+
+
+ _coordinate
+ (20, 168)
+
+
+ _rotation
+ 0
+
+
+
+ import
+
+ id
+ import
+
+
+ _enabled
+ True
+
+
+ import
+ import math
+
+
+ _coordinate
+ (138, 168)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_error_rate
+ wxgui_numbersink2
+ 0
+ 0
+
+
+ gr_throttle
+ blks2_error_rate
+ 0
+ 0
+
+
+ gr_constellation_decoder_cb
+ blks2_error_rate
+ 0
+ 1
+
+
+ gr_add_vxx
+ gr_constellation_decoder_cb
+ 0
+ 0
+
+
+ gr_chunks_to_symbols_xx
+ gr_add_vxx
+ 0
+ 0
+
+
+ gr_noise_source_x
+ gr_add_vxx
+ 0
+ 1
+
+
+ gr_add_vxx
+ wxgui_constellationsink2
+ 0
+ 0
+
+
+ random_source_x
+ gr_throttle
+ 0
+ 0
+
+
+ random_source_x
+ gr_chunks_to_symbols_xx
+ 0
+ 0
+
+
\ No newline at end of file
--
cgit
From d806988c37dcdc3e7b5cf161fdff63920961695c Mon Sep 17 00:00:00 2001
From: jcorgan
Date: Sun, 24 Aug 2008 19:32:13 +0000
Subject: Fixup grc data installation. Trunk now passes distcheck again.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9398 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/Makefile.am | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/Makefile.am b/grc/examples/simple/Makefile.am
index a2fcd614e..b9d1b8d56 100644
--- a/grc/examples/simple/Makefile.am
+++ b/grc/examples/simple/Makefile.am
@@ -19,8 +19,12 @@
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.common
+include $(top_srcdir)/grc/Makefile.inc
-datadir = $(grc_examples_prefix)/simple
+ourdatadir = $(grc_examples_prefix)/simple
-EXTRA_DIST = ber_simulation.grc
+DATA_FILES = ber_simulation.grc
+
+ourdata_DATA = $(DATA_FILES)
+
+EXTRA_DIST = $(DATA_FILES)
--
cgit
From be7c88c4f9877050d3599d62666748d0afdbc342 Mon Sep 17 00:00:00 2001
From: jblum
Date: Tue, 18 Nov 2008 06:56:00 +0000
Subject: grc trellis makefile
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10011 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/Makefile.am | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/Makefile.am b/grc/examples/simple/Makefile.am
index b9d1b8d56..e78188201 100644
--- a/grc/examples/simple/Makefile.am
+++ b/grc/examples/simple/Makefile.am
@@ -23,8 +23,4 @@ include $(top_srcdir)/grc/Makefile.inc
ourdatadir = $(grc_examples_prefix)/simple
-DATA_FILES = ber_simulation.grc
-
-ourdata_DATA = $(DATA_FILES)
-
-EXTRA_DIST = $(DATA_FILES)
+dist_ourdata_DATA = ber_simulation.grc
--
cgit
From ac543718da8ae272f863bdfb1076d5a470f9fdbf Mon Sep 17 00:00:00 2001
From: jblum
Date: Tue, 17 Mar 2009 19:56:17 +0000
Subject: A simple GRC example with packet blocks and dbpsk blocks.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10632 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/Makefile.am | 4 +-
grc/examples/simple/dpsk_loopback.grc | 450 ++++++++++++++++++++++++++++++++++
2 files changed, 453 insertions(+), 1 deletion(-)
create mode 100644 grc/examples/simple/dpsk_loopback.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/Makefile.am b/grc/examples/simple/Makefile.am
index e78188201..a56f98bdd 100644
--- a/grc/examples/simple/Makefile.am
+++ b/grc/examples/simple/Makefile.am
@@ -23,4 +23,6 @@ include $(top_srcdir)/grc/Makefile.inc
ourdatadir = $(grc_examples_prefix)/simple
-dist_ourdata_DATA = ber_simulation.grc
+dist_ourdata_DATA = \
+ ber_simulation.grc \
+ dpsk_loopback.grc
diff --git a/grc/examples/simple/dpsk_loopback.grc b/grc/examples/simple/dpsk_loopback.grc
new file mode 100644
index 000000000..6a507c98d
--- /dev/null
+++ b/grc/examples/simple/dpsk_loopback.grc
@@ -0,0 +1,450 @@
+
+
+ Tue Mar 17 12:53:37 2009
+
+ options
+
+ id
+ dpsk_loopback
+
+
+ _enabled
+ True
+
+
+ title
+ DPSK Loopback
+
+
+ author
+ Example
+
+
+ description
+ gnuradio flow graph
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_dxpsk_mod
+
+ id
+ blks2_dxpsk_mod_0
+
+
+ _enabled
+ True
+
+
+ type
+ dbpsk
+
+
+ samples_per_symbol
+ 2
+
+
+ excess_bw
+ 0.35
+
+
+ gray_code
+ True
+
+
+ _coordinate
+ (426, 295)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 10000
+
+
+ _coordinate
+ (10, 170)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ Frequency (Hz)
+
+
+ value
+ 500
+
+
+ min
+ 0
+
+
+ max
+ samp_rate/2
+
+
+ num_steps
+ 100
+
+
+ slider_length
+ 200
+
+
+ slider_type
+ horizontal
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (12, 257)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_packet_encoder
+
+ id
+ blks2_packet_encoder_0
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ samples_per_symbol
+ 2
+
+
+ bits_per_symbol
+ 1
+
+
+ access_code
+
+
+
+ pad_for_usrp
+ True
+
+
+ payload_length
+ 0
+
+
+ _coordinate
+ (216, 260)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle_0_0
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ samples_per_second
+ samp_rate
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (225, 174)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x
+
+ id
+ gr_sig_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ samp_rate
+ samp_rate
+
+
+ waveform
+ gr.GR_COS_WAVE
+
+
+ freq
+ freq
+
+
+ amp
+ 1
+
+
+ offset
+ 0
+
+
+ _coordinate
+ (203, 8)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_packet_decoder
+
+ id
+ blks2_packet_decoder_0
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ access_code
+
+
+
+ threshold
+ -1
+
+
+ _coordinate
+ (551, 65)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_scopesink2
+
+ id
+ wxgui_scopesink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ title
+ Scope Plot
+
+
+ samp_rate
+ samp_rate
+
+
+ frame_decim
+ 15
+
+
+ v_scale
+ 0
+
+
+ t_scale
+ 1./freq
+
+
+ marker
+ set_format_line
+
+
+ num_inputs
+ 1
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (769, 12)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_dxpsk_demod
+
+ id
+ blks2_dxpsk_demod_0
+
+
+ _enabled
+ True
+
+
+ type
+ dbpsk
+
+
+ samples_per_symbol
+ 2
+
+
+ excess_bw
+ 0.35
+
+
+ costas_alpha
+ 0.175
+
+
+ gain_mu
+ 0.175
+
+
+ mu
+ 0.5
+
+
+ omega_relative_limit
+ 0.005
+
+
+ gray_code
+ True
+
+
+ _coordinate
+ (691, 219)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_dxpsk_mod_0
+ blks2_dxpsk_demod_0
+ 0
+ 0
+
+
+ blks2_dxpsk_demod_0
+ blks2_packet_decoder_0
+ 0
+ 0
+
+
+ blks2_packet_encoder_0
+ blks2_dxpsk_mod_0
+ 0
+ 0
+
+
+ gr_sig_source_x_0
+ gr_throttle_0_0
+ 0
+ 0
+
+
+ gr_throttle_0_0
+ blks2_packet_encoder_0
+ 0
+ 0
+
+
+ blks2_packet_decoder_0
+ wxgui_scopesink2_0
+ 0
+ 0
+
+
--
cgit
From d9744799b7df6c09180778540bf55eb9dc84281b Mon Sep 17 00:00:00 2001
From: jcorgan
Date: Fri, 20 Mar 2009 02:16:20 +0000
Subject: Merged r10463:10658 from jblum/gui_guts into trunk. Trunk passes
distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10660 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/ber_simulation.grc | 186 +++++++++++++++++++--------------
1 file changed, 105 insertions(+), 81 deletions(-)
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/ber_simulation.grc b/grc/examples/simple/ber_simulation.grc
index 0e4ce64ed..8d7d74565 100644
--- a/grc/examples/simple/ber_simulation.grc
+++ b/grc/examples/simple/ber_simulation.grc
@@ -1,6 +1,6 @@
- Thu Jul 24 14:28:06 2008
+ Thu Mar 19 11:08:59 2009
options
@@ -36,78 +36,12 @@
Custom
- _coordinate
- (16, 10)
-
-
- _rotation
- 0
-
-
-
- gr_add_vxx
-
- id
- gr_add_vxx
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- num_inputs
- 2
-
-
- vlen
- 1
-
-
- _coordinate
- (652, 395)
-
-
- _rotation
- 0
-
-
-
- wxgui_constellationsink2
-
- id
- wxgui_constellationsink2
-
-
- _enabled
- True
-
-
- title
- "Constellation: "+str(const)
-
-
- samp_rate
- samp_rate
-
-
- frame_decim
- 15
-
-
- marker
- set_format_plus
-
-
- grid_pos
- 2, 0, 1, 1
+ realtime_scheduling
+
_coordinate
- (907, 334)
+ (16, 10)
_rotation
@@ -239,12 +173,16 @@
15
- avg_alpha
- 0
+ peak_hold
+ False
+
+
+ average
+ False
- options
- none
+ avg_alpha
+ 0
show_gauge
@@ -306,7 +244,7 @@
type
- "BER"
+ 'BER'
win_size
@@ -483,6 +421,92 @@
0
+
+ gr_add_vxx
+
+ id
+ gr_add_vxx
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ num_inputs
+ 2
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (652, 395)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_scopesink2
+
+ id
+ wxgui_scopesink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ "Constellation: "+str(const)
+
+
+ samp_rate
+ samp_rate
+
+
+ v_scale
+ 0
+
+
+ t_scale
+ 0
+
+
+ ac_couple
+ False
+
+
+ xy_mode
+ True
+
+
+ num_inputs
+ 1
+
+
+ grid_pos
+ 2, 0, 1, 1
+
+
+ _coordinate
+ (828, 368)
+
+
+ _rotation
+ 0
+
+
blks2_error_rate
wxgui_numbersink2
@@ -520,21 +544,21 @@
1
- gr_add_vxx
- wxgui_constellationsink2
+ random_source_x
+ gr_throttle
0
0
random_source_x
- gr_throttle
+ gr_chunks_to_symbols_xx
0
0
- random_source_x
- gr_chunks_to_symbols_xx
+ gr_add_vxx
+ wxgui_scopesink2_0
0
0
-
\ No newline at end of file
+
--
cgit
From 4f480479afac529eadc65f4e0bc6fe13e42553b3 Mon Sep 17 00:00:00 2001
From: jblum
Date: Tue, 24 Mar 2009 19:45:55 +0000
Subject: Merged r10666:10669 from jblum/vlen. Trunk passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10678 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/ber_simulation.grc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/ber_simulation.grc b/grc/examples/simple/ber_simulation.grc
index 8d7d74565..618add29c 100644
--- a/grc/examples/simple/ber_simulation.grc
+++ b/grc/examples/simple/ber_simulation.grc
@@ -422,10 +422,10 @@
- gr_add_vxx
+ gr_add_xx
id
- gr_add_vxx
+ gr_add_xx
_enabled
@@ -526,20 +526,20 @@
1
- gr_add_vxx
+ gr_add_xx
gr_constellation_decoder_cb
0
0
gr_chunks_to_symbols_xx
- gr_add_vxx
+ gr_add_xx
0
0
gr_noise_source_x
- gr_add_vxx
+ gr_add_xx
0
1
@@ -556,7 +556,7 @@
0
- gr_add_vxx
+ gr_add_xx
wxgui_scopesink2_0
0
0
--
cgit
From a3ba8cf268816af51c4bb39ea7ecd7e85ea0807b Mon Sep 17 00:00:00 2001
From: jblum
Date: Fri, 1 May 2009 20:28:04 +0000
Subject: Merged grc developer branch r10679:10938
Misc fixes and internal changes.
Added help menu for usage tips.
Added drag and drop for blocks.
Removed callback controls, adopted forms.
Any type can have enumerated options.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10941 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/Makefile.am | 28 ----------------------------
1 file changed, 28 deletions(-)
delete mode 100644 grc/examples/simple/Makefile.am
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/Makefile.am b/grc/examples/simple/Makefile.am
deleted file mode 100644
index a56f98bdd..000000000
--- a/grc/examples/simple/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Copyright 2008 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/grc/Makefile.inc
-
-ourdatadir = $(grc_examples_prefix)/simple
-
-dist_ourdata_DATA = \
- ber_simulation.grc \
- dpsk_loopback.grc
--
cgit
From b086f7337f144a48296bdfd9e2a09ad9979e7bdd Mon Sep 17 00:00:00 2001
From: jblum
Date: Tue, 19 May 2009 23:56:09 +0000
Subject: Re-implemented variable sink so that it can pass vector-aligned
samples. Created backend grc blks2 block to sample the stream and set
callback. Renamed variable sink and moved it into the sinks category. Added
example of variable sink reading taps from a stream and setting them to a FIR
filter.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11062 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/var_sink_taps.grc | 488 ++++++++++++++++++++++++++++++++++
1 file changed, 488 insertions(+)
create mode 100644 grc/examples/simple/var_sink_taps.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/var_sink_taps.grc b/grc/examples/simple/var_sink_taps.grc
new file mode 100644
index 000000000..07207850e
--- /dev/null
+++ b/grc/examples/simple/var_sink_taps.grc
@@ -0,0 +1,488 @@
+
+
+ Tue May 19 16:45:51 2009
+
+ options
+
+ id
+ var_sink_taps
+
+
+ _enabled
+ True
+
+
+ title
+ Variable Sink + Taps
+
+
+ author
+ Example
+
+
+ description
+ gnuradio flow graph
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ gr_noise_source_x
+
+ id
+ gr_noise_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ noise_type
+ gr.GR_GAUSSIAN
+
+
+ amp
+ 1
+
+
+ seed
+ 42
+
+
+ _coordinate
+ (619, 36)
+
+
+ _rotation
+ 0
+
+
+
+ gr_fir_filter_xxx
+
+ id
+ gr_fir_filter_xxx_0
+
+
+ _enabled
+ True
+
+
+ type
+ ccc
+
+
+ decim
+ 1
+
+
+ taps
+ dest_taps
+
+
+ _coordinate
+ (831, 47)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samples_per_second
+ samp_rate
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (999, 198)
+
+
+ _rotation
+ 270
+
+
+
+ wxgui_fftsink2
+
+ id
+ wxgui_fftsink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FFT Plot
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ 0
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 50
+
+
+ fft_size
+ 1024
+
+
+ fft_rate
+ 30
+
+
+ peak_hold
+ False
+
+
+ average
+ False
+
+
+ avg_alpha
+ 0
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (629, 184)
+
+
+ _rotation
+ 180
+
+
+
+ import
+
+ id
+ import_0
+
+
+ _enabled
+ True
+
+
+ import
+ from gnuradio.gr import firdes
+
+
+ _coordinate
+ (330, 120)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ dest_taps
+
+
+ _enabled
+ True
+
+
+ value
+ [0]
+
+
+ _coordinate
+ (836, 223)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 32000
+
+
+ _coordinate
+ (831, 130)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ source_taps
+
+
+ _enabled
+ True
+
+
+ value
+ firdes.low_pass(1, samp_rate, 4000, 2000)
+
+
+ _coordinate
+ (397, 191)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ taps_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 10
+
+
+ _coordinate
+ (268, 189)
+
+
+ _rotation
+ 0
+
+
+
+ gr_vector_source_x
+
+ id
+ gr_vector_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ vector
+ source_taps
+
+
+ repeat
+ True
+
+
+ vlen
+ len(source_taps)
+
+
+ _coordinate
+ (205, 33)
+
+
+ _rotation
+ 0
+
+
+
+ note
+
+ id
+ note_0
+
+
+ _enabled
+ True
+
+
+ note
+ Pass the FIR taps via a variable sink.
+
+
+ _coordinate
+ (14, 141)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samples_per_second
+ taps_rate
+
+
+ vlen
+ len(source_taps)
+
+
+ _coordinate
+ (440, 41)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_variable_sink_x
+
+ id
+ blks2_variable_sink_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ variable
+ dest_taps
+
+
+ decim
+ 1
+
+
+ vlen
+ len(source_taps)
+
+
+ _coordinate
+ (305, 283)
+
+
+ _rotation
+ 180
+
+
+
+ gr_noise_source_x_0
+ gr_fir_filter_xxx_0
+ 0
+ 0
+
+
+ gr_fir_filter_xxx_0
+ gr_throttle_0
+ 0
+ 0
+
+
+ gr_throttle_0
+ wxgui_fftsink2_0
+ 0
+ 0
+
+
+ gr_vector_source_x_0
+ gr_throttle
+ 0
+ 0
+
+
+ gr_throttle
+ blks2_variable_sink_x_0
+ 0
+ 0
+
+
--
cgit
From deb7e98d2c413869e6615fb011f24c2a9944c6d3 Mon Sep 17 00:00:00 2001
From: jblum
Date: Thu, 25 Jun 2009 17:59:26 +0000
Subject: better fix for selected ports, added variable config example to
examples
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11283 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/variable_config.grc | 329 ++++++++++++++++++++++++++++++++
1 file changed, 329 insertions(+)
create mode 100644 grc/examples/simple/variable_config.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/variable_config.grc b/grc/examples/simple/variable_config.grc
new file mode 100644
index 000000000..95c287cce
--- /dev/null
+++ b/grc/examples/simple/variable_config.grc
@@ -0,0 +1,329 @@
+
+
+ Thu Jun 25 10:56:04 2009
+
+ options
+
+ id
+ variable_config_demo
+
+
+ _enabled
+ True
+
+
+ title
+ Variable Config Block Demonstration
+
+
+ author
+ Example
+
+
+ description
+ Save/Load freq from a config file.
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ autostart
+ True
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 32000
+
+
+ _coordinate
+ (10, 170)
+
+
+ _rotation
+ 0
+
+
+
+ variable_config
+
+ id
+ freq_init
+
+
+ _enabled
+ True
+
+
+ value
+ 1000
+
+
+ type
+ real
+
+
+ config_file
+ config.conf
+
+
+ section
+ main
+
+
+ option
+ freq
+
+
+ writeback
+ freq
+
+
+ _coordinate
+ (255, 17)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ Frequency (Hz)
+
+
+ value
+ freq_init
+
+
+ min
+ -samp_rate/2
+
+
+ max
+ samp_rate/2
+
+
+ num_steps
+ 100
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (429, 24)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samples_per_second
+ samp_rate
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (392, 233)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x
+
+ id
+ gr_sig_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samp_rate
+ samp_rate
+
+
+ waveform
+ gr.GR_COS_WAVE
+
+
+ freq
+ freq
+
+
+ amp
+ 1
+
+
+ offset
+ 0
+
+
+ _coordinate
+ (148, 233)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ wxgui_fftsink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FFT Plot
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ 0
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 50
+
+
+ fft_size
+ 1024
+
+
+ fft_rate
+ 30
+
+
+ peak_hold
+ False
+
+
+ average
+ False
+
+
+ avg_alpha
+ 0
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (671, 233)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x_0
+ gr_throttle_0
+ 0
+ 0
+
+
+ gr_throttle_0
+ wxgui_fftsink2_0
+ 0
+ 0
+
+
--
cgit
From 253018c6cdb114f5662a2d7ba8ed748c6e68e3a7 Mon Sep 17 00:00:00 2001
From: git
Date: Fri, 14 Aug 2009 18:10:11 +0000
Subject: Added git ignore files auto created from svn:ignore properties.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11592 221aa14e-8319-0410-a670-987f0aec2ac5
---
grc/examples/simple/.gitignore | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 grc/examples/simple/.gitignore
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/.gitignore b/grc/examples/simple/.gitignore
new file mode 100644
index 000000000..b336cc7ce
--- /dev/null
+++ b/grc/examples/simple/.gitignore
@@ -0,0 +1,2 @@
+/Makefile
+/Makefile.in
--
cgit
From ccca4c7d043bd5e14e48c67880da498c7d578734 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Tue, 6 Oct 2009 18:00:21 -0700
Subject: moved grc examples to gnuradio-examples/grc
---
grc/examples/simple/.gitignore | 2 -
grc/examples/simple/ber_simulation.grc | 564 --------------------------------
grc/examples/simple/dpsk_loopback.grc | 450 -------------------------
grc/examples/simple/var_sink_taps.grc | 488 ---------------------------
grc/examples/simple/variable_config.grc | 329 -------------------
5 files changed, 1833 deletions(-)
delete mode 100644 grc/examples/simple/.gitignore
delete mode 100644 grc/examples/simple/ber_simulation.grc
delete mode 100644 grc/examples/simple/dpsk_loopback.grc
delete mode 100644 grc/examples/simple/var_sink_taps.grc
delete mode 100644 grc/examples/simple/variable_config.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/.gitignore b/grc/examples/simple/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/grc/examples/simple/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/grc/examples/simple/ber_simulation.grc b/grc/examples/simple/ber_simulation.grc
deleted file mode 100644
index 618add29c..000000000
--- a/grc/examples/simple/ber_simulation.grc
+++ /dev/null
@@ -1,564 +0,0 @@
-
-
- Thu Mar 19 11:08:59 2009
-
- options
-
- id
- ber_sim
-
-
- _enabled
- True
-
-
- title
- BER Simulation
-
-
- author
- Example
-
-
- description
- Adjust the noise and constellation... see what happens!
-
-
- window_size
- 1280, 1024
-
-
- generate_options
- wx_gui
-
-
- category
- Custom
-
-
- realtime_scheduling
-
-
-
- _coordinate
- (16, 10)
-
-
- _rotation
- 0
-
-
-
- gr_noise_source_x
-
- id
- gr_noise_source_x
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- noise_type
- gr.GR_GAUSSIAN
-
-
- amp
- noise
-
-
- seed
- 42
-
-
- _coordinate
- (235, 379)
-
-
- _rotation
- 0
-
-
-
- gr_chunks_to_symbols_xx
-
- id
- gr_chunks_to_symbols_xx
-
-
- _enabled
- True
-
-
- in_type
- byte
-
-
- out_type
- complex
-
-
- symbol_table
- const
-
-
- dimension
- 1
-
-
- _coordinate
- (360, 237)
-
-
- _rotation
- 0
-
-
-
- wxgui_numbersink2
-
- id
- wxgui_numbersink2
-
-
- _enabled
- True
-
-
- type
- float
-
-
- title
- BER
-
-
- units
- %
-
-
- samp_rate
- samp_rate
-
-
- base_value
- 0.0
-
-
- min_value
- 0.0
-
-
- max_value
- 1.0
-
-
- factor
- 100
-
-
- decimal_places
- 4
-
-
- ref_level
- 0
-
-
- number_rate
- 15
-
-
- peak_hold
- False
-
-
- average
- False
-
-
- avg_alpha
- 0
-
-
- show_gauge
- False
-
-
- grid_pos
- 1, 0, 1, 1
-
-
- _coordinate
- (1062, 11)
-
-
- _rotation
- 0
-
-
-
- gr_throttle
-
- id
- gr_throttle
-
-
- _enabled
- True
-
-
- type
- byte
-
-
- samples_per_second
- samp_rate
-
-
- vlen
- 1
-
-
- _coordinate
- (397, 27)
-
-
- _rotation
- 0
-
-
-
- blks2_error_rate
-
- id
- blks2_error_rate
-
-
- _enabled
- True
-
-
- type
- 'BER'
-
-
- win_size
- 1000000
-
-
- bits_per_symbol
- int(math.log(len(const))/math.log(2))
-
-
- _coordinate
- (670, 41)
-
-
- _rotation
- 0
-
-
-
- gr_constellation_decoder_cb
-
- id
- gr_constellation_decoder_cb
-
-
- _enabled
- True
-
-
- sym_position
- const
-
-
- sym_value_out
- range(len(const))
-
-
- _coordinate
- (708, 224)
-
-
- _rotation
- 0
-
-
-
- random_source_x
-
- id
- random_source_x
-
-
- _enabled
- True
-
-
- type
- byte
-
-
- min
- 0
-
-
- max
- len(const)
-
-
- num_samps
- 1000000
-
-
- repeat
- False
-
-
- _coordinate
- (15, 244)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- noise
-
-
- _enabled
- True
-
-
- value
- .25
-
-
- _coordinate
- (18, 386)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- const
-
-
- _enabled
- True
-
-
- value
- 1+1j, 1-1j, -1-1j, -1+1j
-
-
- _coordinate
- (16, 461)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- samp_rate
-
-
- _enabled
- True
-
-
- value
- 50e3
-
-
- _coordinate
- (20, 168)
-
-
- _rotation
- 0
-
-
-
- import
-
- id
- import
-
-
- _enabled
- True
-
-
- import
- import math
-
-
- _coordinate
- (138, 168)
-
-
- _rotation
- 0
-
-
-
- gr_add_xx
-
- id
- gr_add_xx
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- num_inputs
- 2
-
-
- vlen
- 1
-
-
- _coordinate
- (652, 395)
-
-
- _rotation
- 0
-
-
-
- wxgui_scopesink2
-
- id
- wxgui_scopesink2_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- title
- "Constellation: "+str(const)
-
-
- samp_rate
- samp_rate
-
-
- v_scale
- 0
-
-
- t_scale
- 0
-
-
- ac_couple
- False
-
-
- xy_mode
- True
-
-
- num_inputs
- 1
-
-
- grid_pos
- 2, 0, 1, 1
-
-
- _coordinate
- (828, 368)
-
-
- _rotation
- 0
-
-
-
- blks2_error_rate
- wxgui_numbersink2
- 0
- 0
-
-
- gr_throttle
- blks2_error_rate
- 0
- 0
-
-
- gr_constellation_decoder_cb
- blks2_error_rate
- 0
- 1
-
-
- gr_add_xx
- gr_constellation_decoder_cb
- 0
- 0
-
-
- gr_chunks_to_symbols_xx
- gr_add_xx
- 0
- 0
-
-
- gr_noise_source_x
- gr_add_xx
- 0
- 1
-
-
- random_source_x
- gr_throttle
- 0
- 0
-
-
- random_source_x
- gr_chunks_to_symbols_xx
- 0
- 0
-
-
- gr_add_xx
- wxgui_scopesink2_0
- 0
- 0
-
-
diff --git a/grc/examples/simple/dpsk_loopback.grc b/grc/examples/simple/dpsk_loopback.grc
deleted file mode 100644
index 6a507c98d..000000000
--- a/grc/examples/simple/dpsk_loopback.grc
+++ /dev/null
@@ -1,450 +0,0 @@
-
-
- Tue Mar 17 12:53:37 2009
-
- options
-
- id
- dpsk_loopback
-
-
- _enabled
- True
-
-
- title
- DPSK Loopback
-
-
- author
- Example
-
-
- description
- gnuradio flow graph
-
-
- window_size
- 1280, 1024
-
-
- generate_options
- wx_gui
-
-
- category
- Custom
-
-
- realtime_scheduling
-
-
-
- _coordinate
- (10, 10)
-
-
- _rotation
- 0
-
-
-
- blks2_dxpsk_mod
-
- id
- blks2_dxpsk_mod_0
-
-
- _enabled
- True
-
-
- type
- dbpsk
-
-
- samples_per_symbol
- 2
-
-
- excess_bw
- 0.35
-
-
- gray_code
- True
-
-
- _coordinate
- (426, 295)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- samp_rate
-
-
- _enabled
- True
-
-
- value
- 10000
-
-
- _coordinate
- (10, 170)
-
-
- _rotation
- 0
-
-
-
- variable_slider
-
- id
- freq
-
-
- _enabled
- True
-
-
- label
- Frequency (Hz)
-
-
- value
- 500
-
-
- min
- 0
-
-
- max
- samp_rate/2
-
-
- num_steps
- 100
-
-
- slider_length
- 200
-
-
- slider_type
- horizontal
-
-
- grid_pos
-
-
-
- _coordinate
- (12, 257)
-
-
- _rotation
- 0
-
-
-
- blks2_packet_encoder
-
- id
- blks2_packet_encoder_0
-
-
- _enabled
- True
-
-
- type
- float
-
-
- samples_per_symbol
- 2
-
-
- bits_per_symbol
- 1
-
-
- access_code
-
-
-
- pad_for_usrp
- True
-
-
- payload_length
- 0
-
-
- _coordinate
- (216, 260)
-
-
- _rotation
- 0
-
-
-
- gr_throttle
-
- id
- gr_throttle_0_0
-
-
- _enabled
- True
-
-
- type
- float
-
-
- samples_per_second
- samp_rate
-
-
- vlen
- 1
-
-
- _coordinate
- (225, 174)
-
-
- _rotation
- 0
-
-
-
- gr_sig_source_x
-
- id
- gr_sig_source_x_0
-
-
- _enabled
- True
-
-
- type
- float
-
-
- samp_rate
- samp_rate
-
-
- waveform
- gr.GR_COS_WAVE
-
-
- freq
- freq
-
-
- amp
- 1
-
-
- offset
- 0
-
-
- _coordinate
- (203, 8)
-
-
- _rotation
- 0
-
-
-
- blks2_packet_decoder
-
- id
- blks2_packet_decoder_0
-
-
- _enabled
- True
-
-
- type
- float
-
-
- access_code
-
-
-
- threshold
- -1
-
-
- _coordinate
- (551, 65)
-
-
- _rotation
- 0
-
-
-
- wxgui_scopesink2
-
- id
- wxgui_scopesink2_0
-
-
- _enabled
- True
-
-
- type
- float
-
-
- title
- Scope Plot
-
-
- samp_rate
- samp_rate
-
-
- frame_decim
- 15
-
-
- v_scale
- 0
-
-
- t_scale
- 1./freq
-
-
- marker
- set_format_line
-
-
- num_inputs
- 1
-
-
- grid_pos
-
-
-
- _coordinate
- (769, 12)
-
-
- _rotation
- 0
-
-
-
- blks2_dxpsk_demod
-
- id
- blks2_dxpsk_demod_0
-
-
- _enabled
- True
-
-
- type
- dbpsk
-
-
- samples_per_symbol
- 2
-
-
- excess_bw
- 0.35
-
-
- costas_alpha
- 0.175
-
-
- gain_mu
- 0.175
-
-
- mu
- 0.5
-
-
- omega_relative_limit
- 0.005
-
-
- gray_code
- True
-
-
- _coordinate
- (691, 219)
-
-
- _rotation
- 0
-
-
-
- blks2_dxpsk_mod_0
- blks2_dxpsk_demod_0
- 0
- 0
-
-
- blks2_dxpsk_demod_0
- blks2_packet_decoder_0
- 0
- 0
-
-
- blks2_packet_encoder_0
- blks2_dxpsk_mod_0
- 0
- 0
-
-
- gr_sig_source_x_0
- gr_throttle_0_0
- 0
- 0
-
-
- gr_throttle_0_0
- blks2_packet_encoder_0
- 0
- 0
-
-
- blks2_packet_decoder_0
- wxgui_scopesink2_0
- 0
- 0
-
-
diff --git a/grc/examples/simple/var_sink_taps.grc b/grc/examples/simple/var_sink_taps.grc
deleted file mode 100644
index 07207850e..000000000
--- a/grc/examples/simple/var_sink_taps.grc
+++ /dev/null
@@ -1,488 +0,0 @@
-
-
- Tue May 19 16:45:51 2009
-
- options
-
- id
- var_sink_taps
-
-
- _enabled
- True
-
-
- title
- Variable Sink + Taps
-
-
- author
- Example
-
-
- description
- gnuradio flow graph
-
-
- window_size
- 1280, 1024
-
-
- generate_options
- wx_gui
-
-
- category
- Custom
-
-
- realtime_scheduling
-
-
-
- _coordinate
- (10, 10)
-
-
- _rotation
- 0
-
-
-
- gr_noise_source_x
-
- id
- gr_noise_source_x_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- noise_type
- gr.GR_GAUSSIAN
-
-
- amp
- 1
-
-
- seed
- 42
-
-
- _coordinate
- (619, 36)
-
-
- _rotation
- 0
-
-
-
- gr_fir_filter_xxx
-
- id
- gr_fir_filter_xxx_0
-
-
- _enabled
- True
-
-
- type
- ccc
-
-
- decim
- 1
-
-
- taps
- dest_taps
-
-
- _coordinate
- (831, 47)
-
-
- _rotation
- 0
-
-
-
- gr_throttle
-
- id
- gr_throttle_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- samples_per_second
- samp_rate
-
-
- vlen
- 1
-
-
- _coordinate
- (999, 198)
-
-
- _rotation
- 270
-
-
-
- wxgui_fftsink2
-
- id
- wxgui_fftsink2_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- title
- FFT Plot
-
-
- samp_rate
- samp_rate
-
-
- baseband_freq
- 0
-
-
- y_per_div
- 10
-
-
- y_divs
- 10
-
-
- ref_level
- 50
-
-
- fft_size
- 1024
-
-
- fft_rate
- 30
-
-
- peak_hold
- False
-
-
- average
- False
-
-
- avg_alpha
- 0
-
-
- grid_pos
-
-
-
- _coordinate
- (629, 184)
-
-
- _rotation
- 180
-
-
-
- import
-
- id
- import_0
-
-
- _enabled
- True
-
-
- import
- from gnuradio.gr import firdes
-
-
- _coordinate
- (330, 120)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- dest_taps
-
-
- _enabled
- True
-
-
- value
- [0]
-
-
- _coordinate
- (836, 223)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- samp_rate
-
-
- _enabled
- True
-
-
- value
- 32000
-
-
- _coordinate
- (831, 130)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- source_taps
-
-
- _enabled
- True
-
-
- value
- firdes.low_pass(1, samp_rate, 4000, 2000)
-
-
- _coordinate
- (397, 191)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- taps_rate
-
-
- _enabled
- True
-
-
- value
- 10
-
-
- _coordinate
- (268, 189)
-
-
- _rotation
- 0
-
-
-
- gr_vector_source_x
-
- id
- gr_vector_source_x_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- vector
- source_taps
-
-
- repeat
- True
-
-
- vlen
- len(source_taps)
-
-
- _coordinate
- (205, 33)
-
-
- _rotation
- 0
-
-
-
- note
-
- id
- note_0
-
-
- _enabled
- True
-
-
- note
- Pass the FIR taps via a variable sink.
-
-
- _coordinate
- (14, 141)
-
-
- _rotation
- 0
-
-
-
- gr_throttle
-
- id
- gr_throttle
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- samples_per_second
- taps_rate
-
-
- vlen
- len(source_taps)
-
-
- _coordinate
- (440, 41)
-
-
- _rotation
- 0
-
-
-
- blks2_variable_sink_x
-
- id
- blks2_variable_sink_x_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- variable
- dest_taps
-
-
- decim
- 1
-
-
- vlen
- len(source_taps)
-
-
- _coordinate
- (305, 283)
-
-
- _rotation
- 180
-
-
-
- gr_noise_source_x_0
- gr_fir_filter_xxx_0
- 0
- 0
-
-
- gr_fir_filter_xxx_0
- gr_throttle_0
- 0
- 0
-
-
- gr_throttle_0
- wxgui_fftsink2_0
- 0
- 0
-
-
- gr_vector_source_x_0
- gr_throttle
- 0
- 0
-
-
- gr_throttle
- blks2_variable_sink_x_0
- 0
- 0
-
-
diff --git a/grc/examples/simple/variable_config.grc b/grc/examples/simple/variable_config.grc
deleted file mode 100644
index 95c287cce..000000000
--- a/grc/examples/simple/variable_config.grc
+++ /dev/null
@@ -1,329 +0,0 @@
-
-
- Thu Jun 25 10:56:04 2009
-
- options
-
- id
- variable_config_demo
-
-
- _enabled
- True
-
-
- title
- Variable Config Block Demonstration
-
-
- author
- Example
-
-
- description
- Save/Load freq from a config file.
-
-
- window_size
- 1280, 1024
-
-
- generate_options
- wx_gui
-
-
- category
- Custom
-
-
- autostart
- True
-
-
- realtime_scheduling
-
-
-
- _coordinate
- (10, 10)
-
-
- _rotation
- 0
-
-
-
- variable
-
- id
- samp_rate
-
-
- _enabled
- True
-
-
- value
- 32000
-
-
- _coordinate
- (10, 170)
-
-
- _rotation
- 0
-
-
-
- variable_config
-
- id
- freq_init
-
-
- _enabled
- True
-
-
- value
- 1000
-
-
- type
- real
-
-
- config_file
- config.conf
-
-
- section
- main
-
-
- option
- freq
-
-
- writeback
- freq
-
-
- _coordinate
- (255, 17)
-
-
- _rotation
- 0
-
-
-
- variable_slider
-
- id
- freq
-
-
- _enabled
- True
-
-
- label
- Frequency (Hz)
-
-
- value
- freq_init
-
-
- min
- -samp_rate/2
-
-
- max
- samp_rate/2
-
-
- num_steps
- 100
-
-
- style
- wx.SL_HORIZONTAL
-
-
- converver
- float_converter
-
-
- grid_pos
-
-
-
- _coordinate
- (429, 24)
-
-
- _rotation
- 0
-
-
-
- gr_throttle
-
- id
- gr_throttle_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- samples_per_second
- samp_rate
-
-
- vlen
- 1
-
-
- _coordinate
- (392, 233)
-
-
- _rotation
- 0
-
-
-
- gr_sig_source_x
-
- id
- gr_sig_source_x_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- samp_rate
- samp_rate
-
-
- waveform
- gr.GR_COS_WAVE
-
-
- freq
- freq
-
-
- amp
- 1
-
-
- offset
- 0
-
-
- _coordinate
- (148, 233)
-
-
- _rotation
- 0
-
-
-
- wxgui_fftsink2
-
- id
- wxgui_fftsink2_0
-
-
- _enabled
- True
-
-
- type
- complex
-
-
- title
- FFT Plot
-
-
- samp_rate
- samp_rate
-
-
- baseband_freq
- 0
-
-
- y_per_div
- 10
-
-
- y_divs
- 10
-
-
- ref_level
- 50
-
-
- fft_size
- 1024
-
-
- fft_rate
- 30
-
-
- peak_hold
- False
-
-
- average
- False
-
-
- avg_alpha
- 0
-
-
- grid_pos
-
-
-
- _coordinate
- (671, 233)
-
-
- _rotation
- 0
-
-
-
- gr_sig_source_x_0
- gr_throttle_0
- 0
- 0
-
-
- gr_throttle_0
- wxgui_fftsink2_0
- 0
- 0
-
-
--
cgit
From faab807cf5e8b4a4c950d1fd8ae6672296fb1ad9 Mon Sep 17 00:00:00 2001
From: Tom Rondeau
Date: Tue, 3 Apr 2012 18:21:52 -0400
Subject: Rework example directories. Gets rid of gnuradio-examples, moves
these to more appropriate components.
gnuradio-core and grc now have their own examples directories for files directly related to them.
---
grc/examples/simple/variable_config.grc | 329 ++++++++++++++++++++++++++++++++
1 file changed, 329 insertions(+)
create mode 100644 grc/examples/simple/variable_config.grc
(limited to 'grc/examples/simple')
diff --git a/grc/examples/simple/variable_config.grc b/grc/examples/simple/variable_config.grc
new file mode 100644
index 000000000..95c287cce
--- /dev/null
+++ b/grc/examples/simple/variable_config.grc
@@ -0,0 +1,329 @@
+
+
+ Thu Jun 25 10:56:04 2009
+
+ options
+
+ id
+ variable_config_demo
+
+
+ _enabled
+ True
+
+
+ title
+ Variable Config Block Demonstration
+
+
+ author
+ Example
+
+
+ description
+ Save/Load freq from a config file.
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ autostart
+ True
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 32000
+
+
+ _coordinate
+ (10, 170)
+
+
+ _rotation
+ 0
+
+
+
+ variable_config
+
+ id
+ freq_init
+
+
+ _enabled
+ True
+
+
+ value
+ 1000
+
+
+ type
+ real
+
+
+ config_file
+ config.conf
+
+
+ section
+ main
+
+
+ option
+ freq
+
+
+ writeback
+ freq
+
+
+ _coordinate
+ (255, 17)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ Frequency (Hz)
+
+
+ value
+ freq_init
+
+
+ min
+ -samp_rate/2
+
+
+ max
+ samp_rate/2
+
+
+ num_steps
+ 100
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (429, 24)
+
+
+ _rotation
+ 0
+
+
+
+ gr_throttle
+
+ id
+ gr_throttle_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samples_per_second
+ samp_rate
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (392, 233)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x
+
+ id
+ gr_sig_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samp_rate
+ samp_rate
+
+
+ waveform
+ gr.GR_COS_WAVE
+
+
+ freq
+ freq
+
+
+ amp
+ 1
+
+
+ offset
+ 0
+
+
+ _coordinate
+ (148, 233)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ wxgui_fftsink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FFT Plot
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ 0
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 50
+
+
+ fft_size
+ 1024
+
+
+ fft_rate
+ 30
+
+
+ peak_hold
+ False
+
+
+ average
+ False
+
+
+ avg_alpha
+ 0
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (671, 233)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x_0
+ gr_throttle_0
+ 0
+ 0
+
+
+ gr_throttle_0
+ wxgui_fftsink2_0
+ 0
+ 0
+
+
--
cgit