From b3bb6afe5311a915a1e13ac70629a477a5783da5 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 5 Oct 2009 18:27:10 -0700 Subject: [PATCH] added mpsk demod example --- grc/examples/Makefile.am | 4 + grc/examples/demod/mpsk_demod.grc | 496 ++++++++++++++++++++++++++++++ 2 files changed, 500 insertions(+) create mode 100644 grc/examples/demod/mpsk_demod.grc diff --git a/grc/examples/Makefile.am b/grc/examples/Makefile.am index 78321ce0..54620e15 100644 --- a/grc/examples/Makefile.am +++ b/grc/examples/Makefile.am @@ -28,6 +28,10 @@ dist_audiodata_DATA = \ audio/dial_tone.grc \ audio/cvsd_sweep.grc +demoddatadir = $(grc_examples_prefix)/demod +dist_demoddata_DATA = \ + demod/mpsk_demod.grc + simpledatadir = $(grc_examples_prefix)/simple dist_simpledata_DATA = \ simple/ber_simulation.grc \ diff --git a/grc/examples/demod/mpsk_demod.grc b/grc/examples/demod/mpsk_demod.grc new file mode 100644 index 00000000..d93591e1 --- /dev/null +++ b/grc/examples/demod/mpsk_demod.grc @@ -0,0 +1,496 @@ + + + Mon Oct 5 18:26:32 2009 + + variable + + id + samp_rate + + + _enabled + True + + + value + 32000 + + + _coordinate + (10, 170) + + + _rotation + 0 + + + + random_source_x + + id + random_source_x_0 + + + _enabled + True + + + type + byte + + + min + 0 + + + max + 2**8 + + + num_samps + 10000 + + + repeat + True + + + _coordinate + (155, 160) + + + _rotation + 0 + + + + wxgui_constellationsink2 + + id + wxgui_constellationsink2_0 + + + _enabled + True + + + title + Constellation Plot + + + samp_rate + samp_rate + + + frame_rate + 5 + + + const_size + 2048 + + + M + 4 + + + theta + 0 + + + alpha + 0.005 + + + fmax + 0.06 + + + mu + 0.5 + + + gain_mu + 0.005 + + + symbol_rate + samp_rate/4. + + + omega_limit + 0.005 + + + grid_pos + + + + notebook + + + + _coordinate + (824, 212) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0 + + + _enabled + True + + + type + complex + + + title + FFT Plot + + + samp_rate + samp_rate + + + baseband_freq + 0 + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + 50 + + + ref_scale + 2.0 + + + fft_size + 1024 + + + fft_rate + 30 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + grid_pos + + + + notebook + + + + _coordinate + (847, 10) + + + _rotation + 0 + + + + variable + + id + samps_per_sym + + + _enabled + True + + + value + 4 + + + _coordinate + (10, 278) + + + _rotation + 0 + + + + blks2_dxpsk_mod + + id + blks2_dxpsk_mod_0 + + + _enabled + True + + + type + dqpsk + + + samples_per_symbol + samps_per_sym + + + excess_bw + 0.35 + + + gray_code + True + + + verbose + False + + + log + False + + + _coordinate + (391, 54) + + + _rotation + 0 + + + + gr_throttle + + id + gr_throttle_0 + + + _enabled + True + + + type + complex + + + samples_per_second + samp_rate + + + vlen + 1 + + + _coordinate + (654, 142) + + + _rotation + 0 + + + + gr_channel_model + + id + gr_channel_model_0 + + + _enabled + True + + + noise_voltage + noise + + + freq_offset + 0.0 + + + epsilon + 1.0 + + + taps + 1.0 + + + seed + 42 + + + _coordinate + (487, 282) + + + _rotation + 0 + + + + variable_slider + + id + noise + + + _enabled + True + + + label + + + + value + .1 + + + min + 0 + + + max + 1 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (234, 324) + + + _rotation + 0 + + + + options + + id + mpsk_demod + + + _enabled + True + + + title + MPSK Demod Demo + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + realtime_scheduling + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + random_source_x_0 + blks2_dxpsk_mod_0 + 0 + 0 + + + gr_throttle_0 + wxgui_constellationsink2_0 + 0 + 0 + + + gr_throttle_0 + wxgui_fftsink2_0 + 0 + 0 + + + blks2_dxpsk_mod_0 + gr_channel_model_0 + 0 + 0 + + + gr_channel_model_0 + gr_throttle_0 + 0 + 0 + + -- 2.47.2