From 177b9cd631f25c69c6bbd1f6167402f13d708918 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sat, 8 Oct 2011 15:28:57 -0400 Subject: uhd examples: updated all GRC USRP-based examples to UHD examples. --- .../grc/uhd/uhd_two_tone_loopback.grc | 2204 ++++++++++++++++++++ 1 file changed, 2204 insertions(+) create mode 100644 gnuradio-examples/grc/uhd/uhd_two_tone_loopback.grc (limited to 'gnuradio-examples/grc/uhd/uhd_two_tone_loopback.grc') diff --git a/gnuradio-examples/grc/uhd/uhd_two_tone_loopback.grc b/gnuradio-examples/grc/uhd/uhd_two_tone_loopback.grc new file mode 100644 index 000000000..8bcbc0792 --- /dev/null +++ b/gnuradio-examples/grc/uhd/uhd_two_tone_loopback.grc @@ -0,0 +1,2204 @@ + + + Sat Oct 8 15:27:04 2011 + + parameter + + id + tx_gain + + + _enabled + True + + + label + Default TX Gain + + + value + 0 + + + type + eng_float + + + short_id + + + + _coordinate + (999, 11) + + + _rotation + 0 + + + + parameter + + id + freq + + + _enabled + True + + + label + Default Frequency + + + value + 2.45e9 + + + type + eng_float + + + short_id + f + + + _coordinate + (665, 11) + + + _rotation + 0 + + + + parameter + + id + freq_offset + + + _enabled + True + + + label + Rx Frequency Offset + + + value + 0 + + + type + eng_float + + + short_id + o + + + _coordinate + (820, 11) + + + _rotation + 0 + + + + parameter + + id + address1 + + + _enabled + True + + + label + IP Address, Dev 1 + + + value + addr=192.168.11.2 + + + type + string + + + short_id + + + + _coordinate + (353, 14) + + + _rotation + 0 + + + + parameter + + id + address0 + + + _enabled + True + + + label + IP Address, Dev 0 + + + value + addr=192.168.10.2 + + + type + string + + + short_id + + + + _coordinate + (193, 14) + + + _rotation + 0 + + + + gr_sig_source_x + + id + gr_sig_source_x + + + _enabled + True + + + type + complex + + + samp_rate + samp_rate + + + waveform + gr.GR_COS_WAVE + + + freq + tone1 + + + amp + tone_ampl + + + offset + 0 + + + _coordinate + (258, 136) + + + _rotation + 0 + + + + gr_sig_source_x + + id + gr_sig_source_x0 + + + _enabled + True + + + type + complex + + + samp_rate + samp_rate + + + waveform + gr.GR_COS_WAVE + + + freq + tone2 + + + amp + tone_ampl + + + offset + 0 + + + _coordinate + (259, 248) + + + _rotation + 0 + + + + gr_noise_source_x + + id + gr_noise_source_x + + + _enabled + True + + + type + complex + + + noise_type + gr.GR_GAUSSIAN + + + amp + noise_ampl + + + seed + 42 + + + _coordinate + (279, 364) + + + _rotation + 0 + + + + uhd_usrp_sink + + id + uhd_usrp_sink_0 + + + _enabled + True + + + type + complex + + + dev_addr + address0 + + + sync + + + + clock_rate + 0.0 + + + num_mboards + 1 + + + ref_source0 + + + + sd_spec0 + + + + ref_source1 + + + + sd_spec1 + + + + ref_source2 + + + + sd_spec2 + + + + ref_source3 + + + + sd_spec3 + + + + ref_source4 + + + + sd_spec4 + + + + ref_source5 + + + + sd_spec5 + + + + ref_source6 + + + + sd_spec6 + + + + ref_source7 + + + + sd_spec7 + + + + nchan + 1 + + + samp_rate + samp_rate + + + center_freq0 + tun_freq + + + gain0 + tun_rx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + _coordinate + (669, 178) + + + _rotation + 0 + + + + parameter + + id + rx_gain + + + _enabled + True + + + label + Default RX Gain + + + value + 0 + + + type + eng_float + + + short_id + + + + _coordinate + (1139, 12) + + + _rotation + 0 + + + + variable_slider + + id + tone1 + + + _enabled + True + + + label + Tone 1 + + + value + 50e3 + + + min + -samp_rate/2 + + + max + samp_rate/2 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + 0, 0, 1, 4 + + + notebook + + + + _coordinate + (161, 484) + + + _rotation + 0 + + + + variable_slider + + id + tone2 + + + _enabled + True + + + label + Tone 2 + + + value + 75e3 + + + min + -samp_rate/2 + + + max + samp_rate/2 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + 0, 4, 1, 4 + + + notebook + + + + _coordinate + (308, 483) + + + _rotation + 0 + + + + variable_slider + + id + tun_tx_gain + + + _enabled + True + + + label + UHD TX Gain + + + value + tx_gain + + + min + 0 + + + max + 20 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (655, 486) + + + _rotation + 0 + + + + variable_slider + + id + tun_freq + + + _enabled + True + + + label + Freq (Hz) + + + value + freq + + + min + 2.4e9 + + + max + 2.5e9 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (514, 487) + + + _rotation + 0 + + + + variable_slider + + id + tun_rx_gain + + + _enabled + True + + + label + UHD RX Gain + + + value + rx_gain + + + min + 0 + + + max + 20 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (781, 487) + + + _rotation + 0 + + + + uhd_usrp_source + + id + uhd_usrp_source_0 + + + _enabled + True + + + type + complex + + + dev_addr + address1 + + + sync + + + + clock_rate + 0.0 + + + num_mboards + 1 + + + ref_source0 + + + + sd_spec0 + + + + ref_source1 + + + + sd_spec1 + + + + ref_source2 + + + + sd_spec2 + + + + ref_source3 + + + + sd_spec3 + + + + ref_source4 + + + + sd_spec4 + + + + ref_source5 + + + + sd_spec5 + + + + ref_source6 + + + + sd_spec6 + + + + ref_source7 + + + + sd_spec7 + + + + nchan + 1 + + + samp_rate + samp_rate + + + center_freq0 + tun_freq + + + gain0 + tun_rx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + _coordinate + (672, 320) + + + _rotation + 0 + + + + variable_slider + + id + tone_ampl + + + _enabled + True + + + label + Tone Ampl + + + value + 0.15 + + + min + 0 + + + max + 1 + + + num_steps + 100 + + + style + wx.SL_VERTICAL + + + converver + float_converter + + + grid_pos + 1, 0, 2, 1 + + + notebook + + + + _coordinate + (14, 485) + + + _rotation + 0 + + + + variable_slider + + id + noise_ampl + + + _enabled + True + + + label + Noise Ampl + + + value + 0.1 + + + min + 0 + + + max + 1 + + + num_steps + 100 + + + style + wx.SL_VERTICAL + + + converver + float_converter + + + grid_pos + 1, 1, 2, 1 + + + notebook + + + + _coordinate + (15, 335) + + + _rotation + 0 + + + + gr_add_xx + + id + gr_add_xx + + + _enabled + True + + + type + complex + + + num_inputs + 3 + + + vlen + 1 + + + _coordinate + (529, 172) + + + _rotation + 0 + + + + options + + id + uhd_two_tone_loopback + + + _enabled + True + + + title + UHD Loopback - 2 Tone + + + author + Example + + + description + Loopback test + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + realtime_scheduling + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2 + + + _enabled + True + + + type + complex + + + title + FFT Plot + + + samp_rate + samp_rate + + + baseband_freq + 0 + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + 0 + + + ref_scale + 2.0 + + + fft_size + 512*2 + + + fft_rate + 15 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + win + window.blackmanharris + + + win_size + + + + grid_pos + 1, 2, 2, 4 + + + notebook + + + + _coordinate + (1114, 264) + + + _rotation + 0 + + + + parameter + + id + samp_rate + + + _enabled + True + + + label + Sample Rate + + + value + 500e3 + + + type + eng_float + + + short_id + s + + + _coordinate + (539, 11) + + + _rotation + 0 + + + + gr_noise_source_x + gr_add_xx + 0 + 2 + + + gr_sig_source_x0 + gr_add_xx + 0 + 1 + + + gr_sig_source_x + gr_add_xx + 0 + 0 + + + gr_add_xx + uhd_usrp_sink_0 + 0 + 0 + + + uhd_usrp_source_0 + wxgui_fftsink2 + 0 + 0 + + -- cgit