X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-examples%2Fgrc%2Fdemod%2Fpam_timing.grc;h=907233aca82fa2e26b299e43033e3b0d2bd6796d;hb=9761acfa39bfcda99b09dad7c5b70d8abb1e6379;hp=fae16841d514707fd158f8a7c01a81842d9aef4d;hpb=da451d5d8b85cde797658415f0186d248f2f53dd;p=debian%2Fgnuradio diff --git a/gnuradio-examples/grc/demod/pam_timing.grc b/gnuradio-examples/grc/demod/pam_timing.grc index fae16841..907233ac 100644 --- a/gnuradio-examples/grc/demod/pam_timing.grc +++ b/gnuradio-examples/grc/demod/pam_timing.grc @@ -1,6 +1,6 @@ - Tue Oct 6 19:43:52 2009 + Fri Oct 9 14:51:58 2009 options @@ -57,38 +57,18 @@ - random_source_x + gr_uchar_to_float id - random_source_x_0 + gr_uchar_to_float_0 _enabled True - - type - byte - - - min - 0 - - - max - 2 - - - num_samps - 1000 - - - repeat - True - _coordinate - (13, 80) + (217, 108) _rotation @@ -96,26 +76,18 @@ - const_source_x + gr_uchar_to_float id - const_source_x_0 + gr_uchar_to_float_0_0 _enabled True - - type - float - - - const - -0.5 - _coordinate - (179, 160) + (216, 273) _rotation @@ -134,7 +106,7 @@ label - noise_amp + Channel Noise value @@ -170,7 +142,7 @@ _coordinate - (600, -1) + (168, 684) _rotation @@ -178,34 +150,22 @@ - gr_noise_source_x + variable id - gr_noise_source_x_0 + samp_rate _enabled True - type - float - - - noise_type - gr.GR_GAUSSIAN - - - amp - noise_amp - - - seed - 42 + value + 32000 _coordinate - (45, 497) + (128, 9) _rotation @@ -213,50 +173,54 @@ - root_raised_cosine_filter + variable_slider id - root_raised_cosine_filter_0 + freq_offset _enabled True - type - interp_fir_filter_fff + label + Frequency Offset - decim - 1 + value + 0 - interp - spb + min + -0.5 - gain - 2*spb + max + 0.5 - samp_rate - 1.0 + num_steps + 1000 - sym_rate - 1./spb + style + wx.SL_HORIZONTAL - alpha - 0.35 + converver + float_converter - ntaps - 11*spb + grid_pos + + + + notebook + _coordinate - (50, 295) + (293, 684) _rotation @@ -264,30 +228,22 @@ - gr_add_xx + variable id - gr_add_xx_0_0 + rrctaps _enabled True - type - float - - - num_inputs - 2 - - - vlen - 1 + value + firdes.root_raised_cosine(nfilts,1.0,1.0/(spb*nfilts), .35, int(11*spb*nfilts)) _coordinate - (375, 390) + (513, 679) _rotation @@ -295,72 +251,54 @@ - const_source_x + variable_slider id - const_source_x_1 + alpha _enabled True - type - float + label + Timing Alpha - const + value 0 - _coordinate - (36, 723) - - - _rotation + min 0 - - - variable - - id - spb - - _enabled - True - - - value - 4 + max + 10 - _coordinate - (34, 915) + num_steps + 1000 - _rotation - 0 + style + wx.SL_HORIZONTAL - - - variable - id - nfilts + converver + float_converter - _enabled - True + grid_pos + - value - 32 + notebook + _coordinate - (31, 828) + (552, 4) _rotation @@ -368,83 +306,65 @@ - gr_throttle + variable_slider id - gr_throttle_0 + beta _enabled True - type - complex - - - samples_per_second - samp_rate - - - vlen - 1 - - - _coordinate - (757, 418) + label + Timing Beta - _rotation + value 0 - - - gr_uchar_to_float - id - gr_uchar_to_float_0 + min + 0.0 - _enabled - True + max + 0.1 - _coordinate - (261, 107) + num_steps + 1000 - _rotation - 0 + style + wx.SL_HORIZONTAL - - - gr_float_to_complex - id - gr_float_to_complex_0 + converver + float_converter - _enabled - True + grid_pos + - vlen - 1 + notebook + _coordinate - (380, 553) + (668, 5) _rotation - 0 + 180 variable id - samp_rate + spb_gen _enabled @@ -452,11 +372,11 @@ value - 320000 + 4 _coordinate - (128, 9) + (119, 841) _rotation @@ -464,46 +384,42 @@ - wxgui_scopesink2 + variable_slider id - wxgui_scopesink2_0 + interpratio _enabled True - type - complex - - - title - Scope Plot + label + Timing Offset - samp_rate - samp_rate + value + 1.00 - v_scale - 0 + min + 0.9 - t_scale - 0 + max + 1.1 - ac_couple - False + num_steps + 1000 - xy_mode - False + style + wx.SL_HORIZONTAL - num_inputs - 1 + converver + float_converter grid_pos @@ -515,18 +431,18 @@ _coordinate - (789, 258) + (40, 684) _rotation - 0 + 180 - gr_add_xx + random_source_x id - gr_add_xx_0 + random_source_x_0 _enabled @@ -534,54 +450,66 @@ type - float + byte - num_inputs - 2 + min + 0 - vlen - 1 + max + pam_amp - _coordinate - (482, 130) + num_samps + 10000 - _rotation - 0 + repeat + True - + + _coordinate + (13, 80) + + + _rotation + 0 + + - notebook + random_source_x id - notebook_0 + random_source_x_0_0 _enabled True - style - wx.NB_TOP + type + byte - labels - ['error', 'phase', 'freq'] + min + 0 - grid_pos - + max + pam_amp - notebook - + num_samps + 10000 + + + repeat + True _coordinate - (851, 531) + (15, 245) _rotation @@ -589,22 +517,26 @@ - variable + const_source_x id - rrctaps + const_source_x_0 _enabled True - value - firdes.root_raised_cosine(nfilts,1.0,0.25/nfilts, .35, 11*spb*nfilts) + type + float + + + const + -0.5*(pam_amp-1) _coordinate - (110, 830) + (213, 197) _rotation @@ -612,22 +544,26 @@ - variable + const_source_x id - initphase + const_source_x_0_0 _enabled True - value - 0.5 + type + float + + + const + -0.5*(pam_amp-1) _coordinate - (110, 913) + (200, 360) _rotation @@ -635,10 +571,10 @@ - gr_fractional_interpolator_xx + wxgui_scopesink2 id - gr_fractional_interpolator_xx_0 + wxgui_scopesink2_0_0 _enabled @@ -646,19 +582,47 @@ type - complex + float - phase_shift - initphase + title + Error - interp_ratio - interpratio + samp_rate + samp_rate + + + v_scale + .5 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + False + + + num_inputs + 1 + + + grid_pos + + + + notebook + notebook_0,0 _coordinate - (349, 662) + (1110, 651) _rotation @@ -669,7 +633,7 @@ wxgui_scopesink2 id - wxgui_scopesink2_0_0 + wxgui_scopesink2_0_0_0_0 _enabled @@ -681,7 +645,7 @@ title - Error + Scope Plot samp_rate @@ -689,7 +653,7 @@ v_scale - .5 + 1.25 t_scale @@ -713,11 +677,11 @@ notebook - notebook_0,0 + notebook_0,2 _coordinate - (798, 638) + (1111, 767) _rotation @@ -776,7 +740,112 @@ _coordinate - (792, 777) + (1112, 881) + + + _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 + (59, 543) + + + _rotation + 0 + + + + gr_throttle + + id + gr_throttle_0 + + + _enabled + True + + + type + complex + + + samples_per_second + samp_rate + + + vlen + 1 + + + _coordinate + (290, 575) + + + _rotation + 0 + + + + notebook + + id + notebook_0 + + + _enabled + True + + + style + wx.NB_TOP + + + labels + ['error', 'phase', 'freq', 'Resampled Signal'] + + + grid_pos + + + + notebook + + + + _coordinate + (729, 769) _rotation @@ -787,7 +856,7 @@ wxgui_scopesink2 id - wxgui_scopesink2_0_0_0_0 + wxgui_scopesink2_0_0_1 _enabled @@ -795,11 +864,11 @@ type - float + complex title - Scope Plot + Error samp_rate @@ -807,7 +876,7 @@ v_scale - 1.25 + .5 t_scale @@ -831,11 +900,11 @@ notebook - notebook_0,2 + notebook_0,3 _coordinate - (797, 915) + (1115, 358) _rotation @@ -843,54 +912,84 @@ - variable_slider + variable id - alpha + spb _enabled True - label - Alpha + value + 4.1 - value - 0 + _coordinate + (32, 842) - min + _rotation 0 + + + gr_add_xx - max + id + gr_add_xx_0 + + + _enabled + True + + + type + float + + + num_inputs + 2 + + + vlen 1 - num_steps - 1000 + _coordinate + (440, 167) - style - wx.SL_HORIZONTAL + _rotation + 0 + + + gr_add_xx - converver - float_converter + id + gr_add_xx_0_1 - grid_pos - + _enabled + True - notebook - + type + float + + + num_inputs + 2 + + + vlen + 1 _coordinate - (757, -1) + (430, 330) _rotation @@ -898,42 +997,151 @@ - variable_slider + blks2_pfb_arb_resampler_ccf id - beta + blks2_pfb_arb_resampler_ccf_0 _enabled True - label - Beta + rate + float(spb)/float(spb_gen) - value + taps + firdes.low_pass(128, 128, 0.45, 0.1) + + + size + 128 + + + _coordinate + (617, 374) + + + _rotation 0 + + + gr_float_to_complex - min + id + gr_float_to_complex_0 + + + _enabled + True + + + vlen + 1 + + + _coordinate + (590, 184) + + + _rotation 0 + + + root_raised_cosine_filter - max + id + root_raised_cosine_filter_0 + + + _enabled + True + + + type + interp_fir_filter_ccf + + + decim 1 - num_steps - 1000 + interp + spb_gen - style - wx.SL_HORIZONTAL + gain + 2*spb_gen - converver - float_converter + samp_rate + 1.0 + + + sym_rate + 1./spb_gen + + + alpha + 0.35 + + + ntaps + 11*spb_gen + + + _coordinate + (832, 157) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0 + + + _enabled + True + + + type + complex + + + title + Scope Plot + + + samp_rate + samp_rate + + + v_scale + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + False + + + num_inputs + 1 grid_pos @@ -945,7 +1153,30 @@ _coordinate - (871, 0) + (1116, 500) + + + _rotation + 0 + + + + variable + + id + nfilts + + + _enabled + True + + + value + 64 + + + _coordinate + (435, 686) _rotation @@ -984,11 +1215,15 @@ init_phase - 14 + 16 + + + max_dev + 20 _coordinate - (346, 773) + (512, 527) _rotation @@ -996,60 +1231,46 @@ - variable_slider + variable id - interpratio + pam_amp _enabled True - - label - - value - 1 - - - min - 0 - - - max 2 - - num_steps - 1000 - - - style - wx.SL_HORIZONTAL - - - converver - float_converter - - - grid_pos - - - - notebook - - _coordinate - (232, 921) + (223, 9) _rotation 0 + + gr_pfb_clock_sync_ccf_0 + wxgui_scopesink2_0_0 + 1 + 0 + + + gr_pfb_clock_sync_ccf_0 + wxgui_scopesink2_0_0_0 + 3 + 0 + + + gr_pfb_clock_sync_ccf_0 + wxgui_scopesink2_0_0_0_0 + 2 + 0 + random_source_x_0 gr_uchar_to_float_0 @@ -1069,75 +1290,75 @@ 1 - gr_add_xx_0 - root_raised_cosine_filter_0 + gr_uchar_to_float_0_0 + gr_add_xx_0_1 0 0 - gr_throttle_0 - wxgui_scopesink2_0 + const_source_x_0_0 + gr_add_xx_0_1 0 - 0 + 1 - root_raised_cosine_filter_0 - gr_add_xx_0_0 + random_source_x_0_0 + gr_uchar_to_float_0_0 0 0 - gr_noise_source_x_0 - gr_add_xx_0_0 + blks2_pfb_arb_resampler_ccf_0 + gr_channel_model_0 0 - 1 + 0 - gr_add_xx_0_0 - gr_float_to_complex_0 + blks2_pfb_arb_resampler_ccf_0 + wxgui_scopesink2_0_0_1 0 0 - const_source_x_1 - gr_float_to_complex_0 + gr_channel_model_0 + gr_throttle_0 0 - 1 + 0 - gr_pfb_clock_sync_ccf_0 - gr_throttle_0 + gr_throttle_0 + gr_pfb_clock_sync_ccf_0 0 0 gr_pfb_clock_sync_ccf_0 - wxgui_scopesink2_0_0 - 1 + wxgui_scopesink2_0 + 0 0 - gr_float_to_complex_0 - gr_fractional_interpolator_xx_0 + gr_add_xx_0 + gr_float_to_complex_0 0 0 - gr_fractional_interpolator_xx_0 - gr_pfb_clock_sync_ccf_0 + gr_add_xx_0_1 + gr_float_to_complex_0 0 - 0 + 1 - gr_pfb_clock_sync_ccf_0 - wxgui_scopesink2_0_0_0 - 3 + gr_float_to_complex_0 + root_raised_cosine_filter_0 + 0 0 - gr_pfb_clock_sync_ccf_0 - wxgui_scopesink2_0_0_0_0 - 2 + root_raised_cosine_filter_0 + blks2_pfb_arb_resampler_ccf_0 + 0 0