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. --- gr-digital/examples/demod/digital_freq_lock.grc | 1321 +++++++++++++++++++++++ 1 file changed, 1321 insertions(+) create mode 100644 gr-digital/examples/demod/digital_freq_lock.grc (limited to 'gr-digital/examples/demod/digital_freq_lock.grc') diff --git a/gr-digital/examples/demod/digital_freq_lock.grc b/gr-digital/examples/demod/digital_freq_lock.grc new file mode 100644 index 000000000..36037febb --- /dev/null +++ b/gr-digital/examples/demod/digital_freq_lock.grc @@ -0,0 +1,1321 @@ + + + Sat Mar 6 17:17:12 2010 + + options + + id + top_block + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + realtime_scheduling + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + gr_uchar_to_float + + id + gr_uchar_to_float_0 + + + _enabled + True + + + _coordinate + (217, 108) + + + _rotation + 0 + + + + gr_uchar_to_float + + id + gr_uchar_to_float_0_0 + + + _enabled + True + + + _coordinate + (216, 273) + + + _rotation + 0 + + + + variable_slider + + id + freq_offset + + + _enabled + True + + + label + Frequency Offset + + + value + 0 + + + min + -0.5 + + + max + 0.5 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (293, 684) + + + _rotation + 0 + + + + random_source_x + + id + random_source_x_0 + + + _enabled + True + + + type + byte + + + min + 0 + + + max + pam_amp + + + num_samps + 10000 + + + repeat + True + + + _coordinate + (13, 80) + + + _rotation + 0 + + + + random_source_x + + id + random_source_x_0_0 + + + _enabled + True + + + type + byte + + + min + 0 + + + max + pam_amp + + + num_samps + 10000 + + + repeat + True + + + _coordinate + (15, 245) + + + _rotation + 0 + + + + const_source_x + + id + const_source_x_0 + + + _enabled + True + + + type + float + + + const + -0.5*(pam_amp-1) + + + _coordinate + (213, 197) + + + _rotation + 0 + + + + const_source_x + + id + const_source_x_0_0 + + + _enabled + True + + + type + float + + + const + -0.5*(pam_amp-1) + + + _coordinate + (200, 360) + + + _rotation + 0 + + + + gr_add_xx + + id + gr_add_xx_0 + + + _enabled + True + + + type + float + + + num_inputs + 2 + + + vlen + 1 + + + _coordinate + (440, 167) + + + _rotation + 0 + + + + gr_add_xx + + id + gr_add_xx_0_1 + + + _enabled + True + + + type + float + + + num_inputs + 2 + + + vlen + 1 + + + _coordinate + (430, 330) + + + _rotation + 0 + + + + variable + + id + nfilts + + + _enabled + True + + + value + 32 + + + _coordinate + (435, 686) + + + _rotation + 0 + + + + variable_slider + + id + noise_amp + + + _enabled + True + + + label + Channel Noise + + + value + 0 + + + min + 0 + + + max + 1.0 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (168, 684) + + + _rotation + 0 + + + + variable + + id + spb_gen + + + _enabled + True + + + value + 4 + + + _coordinate + (119, 841) + + + _rotation + 0 + + + + variable + + id + pam_amp + + + _enabled + True + + + value + 2 + + + _coordinate + (223, 9) + + + _rotation + 0 + + + + variable + + id + spb + + + _enabled + True + + + value + 4.1 + + + _coordinate + (32, 842) + + + _rotation + 0 + + + + gr_float_to_complex + + id + gr_float_to_complex_0 + + + _enabled + True + + + vlen + 1 + + + _coordinate + (590, 184) + + + _rotation + 0 + + + + gr_throttle + + id + gr_throttle_0 + + + _enabled + True + + + type + complex + + + samples_per_second + samp_rate + + + vlen + 1 + + + _coordinate + (788, 197) + + + _rotation + 0 + + + + notebook + + id + notebook_0 + + + _enabled + True + + + style + wx.NB_TOP + + + labels + ['Freq', 'Time'] + + + grid_pos + + + + notebook + + + + _coordinate + (216, 845) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0 + + + _enabled + True + + + type + complex + + + title + Signal into Receiver + + + samp_rate + samp_rate + + + v_scale + 0 + + + v_offset + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + False + + + num_inputs + 1 + + + win_size + + + + grid_pos + + + + notebook + notebook_0,1 + + + _coordinate + (1123, 392) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0 + + + _enabled + True + + + type + complex + + + title + Signal into Receiver + + + samp_rate + samp_rate + + + baseband_freq + 0 + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + 10 + + + ref_scale + 2.0 + + + fft_size + 1024 + + + fft_rate + 30 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + win + None + + + win_size + + + + grid_pos + + + + notebook + notebook_0,0 + + + _coordinate + (1122, 473) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0_0 + + + _enabled + True + + + type + complex + + + title + Frequency Corrected Signal + + + samp_rate + samp_rate + + + v_scale + 0 + + + v_offset + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + False + + + num_inputs + 1 + + + win_size + + + + grid_pos + + + + notebook + notebook_0,1 + + + _coordinate + (1122, 680) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0_0 + + + _enabled + True + + + type + complex + + + title + Frequency Corrected Signal + + + samp_rate + samp_rate + + + baseband_freq + 0 + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + 10 + + + ref_scale + 2.0 + + + fft_size + 1024 + + + fft_rate + 30 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + win + None + + + win_size + + + + grid_pos + + + + notebook + notebook_0,0 + + + _coordinate + (1121, 762) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 32000 + + + _coordinate + (128, 9) + + + _rotation + 0 + + + + variable + + id + sig_amp + + + _enabled + True + + + value + 1 + + + _coordinate + (315, 9) + + + _rotation + 0 + + + + variable + + id + rolloff + + + _enabled + True + + + value + 0.35 + + + _coordinate + (398, 12) + + + _rotation + 0 + + + + variable + + id + rrctaps + + + _enabled + True + + + value + firdes.root_raised_cosine(nfilts,1.0,1.0/(spb*nfilts), .35, int(11*spb*nfilts)) + + + _coordinate + (826, 61) + + + _rotation + 0 + + + + root_raised_cosine_filter + + id + root_raised_cosine_filter_0 + + + _enabled + True + + + type + interp_fir_filter_ccf + + + decim + 1 + + + interp + spb_gen + + + gain + 2*spb_gen + + + samp_rate + 1.0 + + + sym_rate + 1./spb_gen + + + alpha + rolloff + + + ntaps + 44 + + + _coordinate + (978, 157) + + + _rotation + 0 + + + + gr_fll_band_edge_cc + + id + gr_fll_band_edge_cc_0 + + + _enabled + True + + + type + cc + + + samps_per_sym + spb_gen + + + rolloff + rolloff + + + filter_size + 44 + + + alpha + alpha + + + beta + beta + + + _coordinate + (874, 664) + + + _rotation + 0 + + + + gr_channel_model + + id + gr_channel_model_0 + + + _enabled + True + + + noise_voltage + noise_amp + + + freq_offset + freq_offset + + + epsilon + 1.0 + + + taps + 1.0 + + + seed + 42 + + + _coordinate + (618, 376) + + + _rotation + 0 + + + + variable_slider + + id + beta + + + _enabled + True + + + label + Freq Beta + + + value + 0 + + + min + 0.0 + + + max + 0.01 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (668, 5) + + + _rotation + 180 + + + + variable_slider + + id + alpha + + + _enabled + True + + + label + Freq Alpha + + + value + 0 + + + min + 0 + + + max + 0.1 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (552, 4) + + + _rotation + 0 + + + + random_source_x_0 + gr_uchar_to_float_0 + 0 + 0 + + + gr_uchar_to_float_0 + gr_add_xx_0 + 0 + 0 + + + const_source_x_0 + gr_add_xx_0 + 0 + 1 + + + gr_uchar_to_float_0_0 + gr_add_xx_0_1 + 0 + 0 + + + const_source_x_0_0 + gr_add_xx_0_1 + 0 + 1 + + + random_source_x_0_0 + gr_uchar_to_float_0_0 + 0 + 0 + + + gr_add_xx_0 + gr_float_to_complex_0 + 0 + 0 + + + gr_add_xx_0_1 + gr_float_to_complex_0 + 0 + 1 + + + gr_float_to_complex_0 + gr_throttle_0 + 0 + 0 + + + gr_throttle_0 + root_raised_cosine_filter_0 + 0 + 0 + + + gr_channel_model_0 + wxgui_scopesink2_0 + 0 + 0 + + + root_raised_cosine_filter_0 + gr_channel_model_0 + 0 + 0 + + + gr_channel_model_0 + wxgui_fftsink2_0 + 0 + 0 + + + gr_channel_model_0 + gr_fll_band_edge_cc_0 + 0 + 0 + + + gr_fll_band_edge_cc_0 + wxgui_scopesink2_0_0 + 0 + 0 + + + gr_fll_band_edge_cc_0 + wxgui_fftsink2_0_0 + 0 + 0 + + -- cgit