From 4d26058e23b82488974b50da22462e7d60780d84 Mon Sep 17 00:00:00 2001
From: jblum
Date: Fri, 23 Jan 2009 19:49:20 +0000
Subject: usrp2 examples
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10295 221aa14e-8319-0410-a670-987f0aec2ac5
---
.../platforms/python/blocks/wxgui_fftsink2.xml | 1 +
grc/examples/usrp/Makefile.am | 4 +-
grc/examples/usrp/usrp2_const_wave.grc | 198 ++++++++++++++++
grc/examples/usrp/usrp2_fft.grc | 249 +++++++++++++++++++++
4 files changed, 451 insertions(+), 1 deletion(-)
create mode 100644 grc/examples/usrp/usrp2_const_wave.grc
create mode 100644 grc/examples/usrp/usrp2_fft.grc
(limited to 'grc')
diff --git a/grc/data/platforms/python/blocks/wxgui_fftsink2.xml b/grc/data/platforms/python/blocks/wxgui_fftsink2.xml
index 68b07ba9d..bd2cb056e 100644
--- a/grc/data/platforms/python/blocks/wxgui_fftsink2.xml
+++ b/grc/data/platforms/python/blocks/wxgui_fftsink2.xml
@@ -32,6 +32,7 @@ self.Add(self.$(id).win)
#else
self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end if
+ set_baseband_freq($baseband_freq)
Type
type
diff --git a/grc/examples/usrp/Makefile.am b/grc/examples/usrp/Makefile.am
index a74c18561..4e969ebd4 100644
--- a/grc/examples/usrp/Makefile.am
+++ b/grc/examples/usrp/Makefile.am
@@ -1,5 +1,5 @@
#
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright 2008, 2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -24,5 +24,7 @@ include $(top_srcdir)/grc/Makefile.inc
ourdatadir = $(grc_examples_prefix)/usrp
dist_ourdata_DATA = \
+ usrp2_const_wave.grc \
+ usrp2_fft.grc \
usrp_two_tone_loopback.grc \
usrp_wbfm_receive.grc
diff --git a/grc/examples/usrp/usrp2_const_wave.grc b/grc/examples/usrp/usrp2_const_wave.grc
new file mode 100644
index 000000000..ac9570349
--- /dev/null
+++ b/grc/examples/usrp/usrp2_const_wave.grc
@@ -0,0 +1,198 @@
+
+
+ Fri Jan 23 11:26:26 2009
+
+ options
+
+ id
+ top_block
+
+
+ _enabled
+ True
+
+
+ title
+ USRP2 Const Wave
+
+
+ author
+ Example
+
+
+ description
+ Carrier with constant amplitude
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ Frequency (Hz)
+
+
+ value
+ 15e6
+
+
+ min
+ 10e6
+
+
+ max
+ 20e6
+
+
+ num_steps
+ 100
+
+
+ slider_length
+ 200
+
+
+ slider_type
+ horizontal
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (12, 144)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x
+
+ id
+ gr_sig_source_x_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ samp_rate
+ 0
+
+
+ waveform
+ gr.GR_CONST_WAVE
+
+
+ freq
+ 0
+
+
+ amp
+ 10e3
+
+
+ offset
+ 0
+
+
+ _coordinate
+ (225, 27)
+
+
+ _rotation
+ 0
+
+
+
+ usrp2_sink_xxxx
+
+ id
+ usrp2_sink_xxxx_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ interface
+
+
+
+ mac_addr
+
+
+
+ frequency
+ freq
+
+
+ interpolation
+ 101
+
+
+ gain
+ 0
+
+
+ auto_tr
+
+
+
+ tx_enb
+
+
+
+ _coordinate
+ (391, 190)
+
+
+ _rotation
+ 0
+
+
+
+ gr_sig_source_x_0
+ usrp2_sink_xxxx_0
+ 0
+ 0
+
+
diff --git a/grc/examples/usrp/usrp2_fft.grc b/grc/examples/usrp/usrp2_fft.grc
new file mode 100644
index 000000000..e7e93b3ff
--- /dev/null
+++ b/grc/examples/usrp/usrp2_fft.grc
@@ -0,0 +1,249 @@
+
+
+ Fri Jan 23 11:38:11 2009
+
+ options
+
+ id
+ top_block
+
+
+ _enabled
+ True
+
+
+ title
+ USRP2 FFT
+
+
+ author
+ Example
+
+
+ description
+ FFT of Spectrum
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ decim
+
+
+ _enabled
+ True
+
+
+ value
+ 4
+
+
+ _coordinate
+ (35, 149)
+
+
+ _rotation
+ 0
+
+
+
+ usrp2_source_xxxx
+
+ id
+ usrp2_source_xxxx_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ interface
+
+
+
+ mac_addr
+
+
+
+ frequency
+ freq
+
+
+ decimation
+ decim
+
+
+ gain
+ 0
+
+
+ auto_tr
+
+
+
+ rx_ant
+
+
+
+ _coordinate
+ (177, 271)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ wxgui_fftsink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FFT Plot
+
+
+ samp_rate
+ 100e6/decim
+
+
+ baseband_freq
+ freq
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 12
+
+
+ ref_level
+ 20
+
+
+ fft_size
+ 1024
+
+
+ fft_rate
+ 30
+
+
+ avg_alpha
+ 0
+
+
+ average
+ False
+
+
+ peak_hold
+ False
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (384, 72)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ Frequency (Hz)
+
+
+ value
+ 0
+
+
+ min
+ -100e6
+
+
+ max
+ 100e6
+
+
+ num_steps
+ 100
+
+
+ slider_length
+ 200
+
+
+ slider_type
+ horizontal
+
+
+ grid_pos
+
+
+
+ _coordinate
+ (139, 129)
+
+
+ _rotation
+ 0
+
+
+
+ usrp2_source_xxxx_0
+ wxgui_fftsink2_0
+ 0
+ 0
+
+
--
cgit