X-Git-Url: https://git.gag.com/?p=debian%2Fgnuradio;a=blobdiff_plain;f=gnuradio-examples%2Fgrc%2Fdemod%2Fpam_sync.grc;fp=gnuradio-examples%2Fgrc%2Fdemod%2Fpam_sync.grc;h=8571995a582f95bfc71339bc971b76171b78b133;hp=0000000000000000000000000000000000000000;hb=8a9ddbb0675f9bfcc6e03b457fba6c79474a3693;hpb=82d471b9b4a8b389b5da44b19c69c36420828382 diff --git a/gnuradio-examples/grc/demod/pam_sync.grc b/gnuradio-examples/grc/demod/pam_sync.grc new file mode 100644 index 00000000..8571995a --- /dev/null +++ b/gnuradio-examples/grc/demod/pam_sync.grc @@ -0,0 +1,1744 @@ + + + Sat Mar 6 17:17:22 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 + + id + samp_rate + + + _enabled + True + + + value + 32000 + + + _coordinate + (128, 9) + + + _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_slider + + id + interpratio + + + _enabled + True + + + label + Timing Offset + + + value + 1.00 + + + min + 0.99 + + + max + 1.01 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (40, 684) + + + _rotation + 180 + + + + variable + + id + pam_amp + + + _enabled + True + + + value + 2 + + + _coordinate + (223, 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 + (397, 9) + + + _rotation + 0 + + + + gr_throttle + + id + gr_throttle_0 + + + _enabled + True + + + type + complex + + + samples_per_second + samp_rate + + + vlen + 1 + + + _coordinate + (253, 575) + + + _rotation + 0 + + + + variable_slider + + id + time_beta + + + _enabled + True + + + label + Timing Beta + + + value + 0 + + + min + 0.0 + + + max + 0.1 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (606, 8) + + + _rotation + 180 + + + + variable_slider + + id + time_alpha + + + _enabled + True + + + label + Timing Alpha + + + value + 0 + + + min + 0 + + + max + 1 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (490, 8) + + + _rotation + 0 + + + + variable_slider + + id + phase_alpha + + + _enabled + True + + + label + Phase Alpha + + + value + 0 + + + min + 0 + + + max + 0.1 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (953, 8) + + + _rotation + 0 + + + + variable_slider + + id + phase_beta + + + _enabled + True + + + label + Phase Beta + + + value + 0 + + + min + 0.0 + + + max + 0.01 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (1066, 8) + + + _rotation + 180 + + + + gr_costas_loop_cc + + id + gr_costas_loop_cc_0 + + + _enabled + True + + + alpha + phase_alpha + + + beta + phase_beta + + + max_freq + 0.2 + + + min_freq + -0.2 + + + order + 4 + + + _coordinate + (915, 560) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0 + + + _enabled + True + + + type + complex + + + title + Input 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,0 + + + _coordinate + (1116, 559) + + + _rotation + 0 + + + + variable + + id + rrctaps + + + _enabled + True + + + value + firdes.root_raised_cosine(nfilts,1.0,1.0/(spb*nfilts), rolloff, int(11*spb*nfilts)) + + + _coordinate + (436, 755) + + + _rotation + 0 + + + + notebook + + id + notebook_0 + + + _enabled + True + + + style + wx.NB_TOP + + + labels + ['Output Signal', 'Input Signal'] + + + grid_pos + + + + notebook + + + + _coordinate + (203, 823) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0_0_1 + + + _enabled + True + + + type + complex + + + title + Input Signal + + + samp_rate + samp_rate + + + v_scale + .5 + + + v_offset + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + False + + + num_inputs + 1 + + + win_size + + + + grid_pos + + + + notebook + notebook_0,1 + + + _coordinate + (975, 312) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0 + + + _enabled + True + + + type + complex + + + title + Input Frequency + + + 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,1 + + + _coordinate + (1116, 355) + + + _rotation + 0 + + + + virtual_source + + id + virtual_source_0 + + + _enabled + True + + + stream_id + input_signal_probe + + + _coordinate + (801, 453) + + + _rotation + 0 + + + + virtual_sink + + id + virtual_sink_0 + + + _enabled + True + + + stream_id + input_signal_probe + + + _coordinate + (280, 475) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0_0 + + + _enabled + True + + + type + complex + + + title + Output Frequency + + + 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 + (663, 687) + + + _rotation + 0 + + + + gr_pfb_clock_sync_xxx + + id + gr_pfb_clock_sync_xxx_0 + + + _enabled + True + + + type + ccf + + + sps + spb + + + alpha + time_alpha + + + beta + time_beta + + + taps + rrctaps + + + filter_size + nfilts + + + init_phase + 16 + + + max_dev + 1.5 + + + _coordinate + (662, 527) + + + _rotation + 0 + + + + gr_float_to_complex + + id + gr_float_to_complex_0 + + + _enabled + True + + + vlen + 1 + + + _coordinate + (592, 184) + + + _rotation + 0 + + + + gr_channel_model + + id + gr_channel_model_0 + + + _enabled + True + + + noise_voltage + noise_amp + + + freq_offset + freq_offset + + + epsilon + interpratio + + + taps + 1.0 + + + seed + 42 + + + _coordinate + (60, 443) + + + _rotation + 0 + + + + gr_multiply_const_vxx + + id + gr_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + sig_amp + + + vlen + 1 + + + _coordinate + (670, 322) + + + _rotation + 0 + + + + blks2_pfb_arb_resampler_ccf + + id + blks2_pfb_arb_resampler_ccf_0 + + + _enabled + True + + + rate + spb + + + taps + firdes.root_raised_cosine(32, 32, 1.0, 0.35, 44*32) + + + size + 32 + + + _coordinate + (778, 180) + + + _rotation + 0 + + + + gr_fll_band_edge_cc + + id + gr_fll_band_edge_cc_0 + + + _enabled + True + + + type + cc + + + samps_per_sym + spb + + + rolloff + rolloff + + + filter_size + 44 + + + alpha + freq_alpha + + + beta + freq_beta + + + _coordinate + (429, 528) + + + _rotation + 0 + + + + variable + + id + spb + + + _enabled + True + + + value + 4.0 + + + _coordinate + (40, 829) + + + _rotation + 0 + + + + variable_slider + + id + freq_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 + (734, 10) + + + _rotation + 0 + + + + variable_slider + + id + freq_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 + (836, 9) + + + _rotation + 180 + + + + random_source_x_0 + gr_uchar_to_float_0 + 0 + 0 + + + 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_channel_model_0 + gr_throttle_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_uchar_to_float_0 + gr_add_xx_0 + 0 + 0 + + + const_source_x_0 + gr_add_xx_0 + 0 + 1 + + + gr_throttle_0 + gr_fll_band_edge_cc_0 + 0 + 0 + + + gr_fll_band_edge_cc_0 + gr_pfb_clock_sync_xxx_0 + 0 + 0 + + + gr_pfb_clock_sync_xxx_0 + gr_costas_loop_cc_0 + 0 + 0 + + + gr_costas_loop_cc_0 + wxgui_scopesink2_0 + 0 + 0 + + + gr_fll_band_edge_cc_0 + wxgui_fftsink2_0_0 + 0 + 0 + + + virtual_source_0 + wxgui_scopesink2_0_0_1 + 0 + 0 + + + virtual_source_0 + wxgui_fftsink2_0 + 0 + 0 + + + gr_channel_model_0 + virtual_sink_0 + 0 + 0 + + + gr_float_to_complex_0 + blks2_pfb_arb_resampler_ccf_0 + 0 + 0 + + + blks2_pfb_arb_resampler_ccf_0 + gr_multiply_const_vxx_0 + 0 + 0 + + + gr_multiply_const_vxx_0 + gr_channel_model_0 + 0 + 0 + +