diff options
author | jblum | 2009-01-23 19:49:20 +0000 |
---|---|---|
committer | jblum | 2009-01-23 19:49:20 +0000 |
commit | 4d26058e23b82488974b50da22462e7d60780d84 (patch) | |
tree | 18f72663984a326fd4fca693ff8f61924c5a832b /grc | |
parent | 63bda2352df94fd07843b38be17a6129acb5af54 (diff) | |
download | gnuradio-4d26058e23b82488974b50da22462e7d60780d84.tar.gz gnuradio-4d26058e23b82488974b50da22462e7d60780d84.tar.bz2 gnuradio-4d26058e23b82488974b50da22462e7d60780d84.zip |
usrp2 examples
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10295 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc')
-rw-r--r-- | grc/data/platforms/python/blocks/wxgui_fftsink2.xml | 1 | ||||
-rw-r--r-- | grc/examples/usrp/Makefile.am | 4 | ||||
-rw-r--r-- | grc/examples/usrp/usrp2_const_wave.grc | 198 | ||||
-rw-r--r-- | grc/examples/usrp/usrp2_fft.grc | 249 |
4 files changed, 451 insertions, 1 deletions
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</make> + <callback>set_baseband_freq($baseband_freq)</callback> <param> <name>Type</name> <key>type</key> 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 @@ +<?xml version='1.0' encoding='ASCII'?> +<flow_graph> + <timestamp>Fri Jan 23 11:26:26 2009</timestamp> + <block> + <key>options</key> + <param> + <key>id</key> + <value>top_block</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>title</key> + <value>USRP2 Const Wave</value> + </param> + <param> + <key>author</key> + <value>Example</value> + </param> + <param> + <key>description</key> + <value>Carrier with constant amplitude</value> + </param> + <param> + <key>window_size</key> + <value>1280, 1024</value> + </param> + <param> + <key>generate_options</key> + <value>wx_gui</value> + </param> + <param> + <key>category</key> + <value>Custom</value> + </param> + <param> + <key>_coordinate</key> + <value>(10, 10)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>variable_slider</key> + <param> + <key>id</key> + <value>freq</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>label</key> + <value>Frequency (Hz)</value> + </param> + <param> + <key>value</key> + <value>15e6</value> + </param> + <param> + <key>min</key> + <value>10e6</value> + </param> + <param> + <key>max</key> + <value>20e6</value> + </param> + <param> + <key>num_steps</key> + <value>100</value> + </param> + <param> + <key>slider_length</key> + <value>200</value> + </param> + <param> + <key>slider_type</key> + <value>horizontal</value> + </param> + <param> + <key>grid_pos</key> + <value></value> + </param> + <param> + <key>_coordinate</key> + <value>(12, 144)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>gr_sig_source_x</key> + <param> + <key>id</key> + <value>gr_sig_source_x_0</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>type</key> + <value>complex</value> + </param> + <param> + <key>samp_rate</key> + <value>0</value> + </param> + <param> + <key>waveform</key> + <value>gr.GR_CONST_WAVE</value> + </param> + <param> + <key>freq</key> + <value>0</value> + </param> + <param> + <key>amp</key> + <value>10e3</value> + </param> + <param> + <key>offset</key> + <value>0</value> + </param> + <param> + <key>_coordinate</key> + <value>(225, 27)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>usrp2_sink_xxxx</key> + <param> + <key>id</key> + <value>usrp2_sink_xxxx_0</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>type</key> + <value>complex</value> + </param> + <param> + <key>interface</key> + <value></value> + </param> + <param> + <key>mac_addr</key> + <value></value> + </param> + <param> + <key>frequency</key> + <value>freq</value> + </param> + <param> + <key>interpolation</key> + <value>101</value> + </param> + <param> + <key>gain</key> + <value>0</value> + </param> + <param> + <key>auto_tr</key> + <value></value> + </param> + <param> + <key>tx_enb</key> + <value></value> + </param> + <param> + <key>_coordinate</key> + <value>(391, 190)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <connection> + <source_block_id>gr_sig_source_x_0</source_block_id> + <sink_block_id>usrp2_sink_xxxx_0</sink_block_id> + <source_key>0</source_key> + <sink_key>0</sink_key> + </connection> +</flow_graph> 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 @@ +<?xml version='1.0' encoding='ASCII'?> +<flow_graph> + <timestamp>Fri Jan 23 11:38:11 2009</timestamp> + <block> + <key>options</key> + <param> + <key>id</key> + <value>top_block</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>title</key> + <value>USRP2 FFT</value> + </param> + <param> + <key>author</key> + <value>Example</value> + </param> + <param> + <key>description</key> + <value>FFT of Spectrum</value> + </param> + <param> + <key>window_size</key> + <value>1280, 1024</value> + </param> + <param> + <key>generate_options</key> + <value>wx_gui</value> + </param> + <param> + <key>category</key> + <value>Custom</value> + </param> + <param> + <key>_coordinate</key> + <value>(10, 10)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>variable</key> + <param> + <key>id</key> + <value>decim</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>value</key> + <value>4</value> + </param> + <param> + <key>_coordinate</key> + <value>(35, 149)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>usrp2_source_xxxx</key> + <param> + <key>id</key> + <value>usrp2_source_xxxx_0</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>type</key> + <value>complex</value> + </param> + <param> + <key>interface</key> + <value></value> + </param> + <param> + <key>mac_addr</key> + <value></value> + </param> + <param> + <key>frequency</key> + <value>freq</value> + </param> + <param> + <key>decimation</key> + <value>decim</value> + </param> + <param> + <key>gain</key> + <value>0</value> + </param> + <param> + <key>auto_tr</key> + <value></value> + </param> + <param> + <key>rx_ant</key> + <value></value> + </param> + <param> + <key>_coordinate</key> + <value>(177, 271)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>wxgui_fftsink2</key> + <param> + <key>id</key> + <value>wxgui_fftsink2_0</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>type</key> + <value>complex</value> + </param> + <param> + <key>title</key> + <value>FFT Plot</value> + </param> + <param> + <key>samp_rate</key> + <value>100e6/decim</value> + </param> + <param> + <key>baseband_freq</key> + <value>freq</value> + </param> + <param> + <key>y_per_div</key> + <value>10</value> + </param> + <param> + <key>y_divs</key> + <value>12</value> + </param> + <param> + <key>ref_level</key> + <value>20</value> + </param> + <param> + <key>fft_size</key> + <value>1024</value> + </param> + <param> + <key>fft_rate</key> + <value>30</value> + </param> + <param> + <key>avg_alpha</key> + <value>0</value> + </param> + <param> + <key>average</key> + <value>False</value> + </param> + <param> + <key>peak_hold</key> + <value>False</value> + </param> + <param> + <key>grid_pos</key> + <value></value> + </param> + <param> + <key>_coordinate</key> + <value>(384, 72)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <block> + <key>variable_slider</key> + <param> + <key>id</key> + <value>freq</value> + </param> + <param> + <key>_enabled</key> + <value>True</value> + </param> + <param> + <key>label</key> + <value>Frequency (Hz)</value> + </param> + <param> + <key>value</key> + <value>0</value> + </param> + <param> + <key>min</key> + <value>-100e6</value> + </param> + <param> + <key>max</key> + <value>100e6</value> + </param> + <param> + <key>num_steps</key> + <value>100</value> + </param> + <param> + <key>slider_length</key> + <value>200</value> + </param> + <param> + <key>slider_type</key> + <value>horizontal</value> + </param> + <param> + <key>grid_pos</key> + <value></value> + </param> + <param> + <key>_coordinate</key> + <value>(139, 129)</value> + </param> + <param> + <key>_rotation</key> + <value>0</value> + </param> + </block> + <connection> + <source_block_id>usrp2_source_xxxx_0</source_block_id> + <sink_block_id>wxgui_fftsink2_0</sink_block_id> + <source_key>0</source_key> + <sink_key>0</sink_key> + </connection> +</flow_graph> |