aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsara <sara.halter@gmx.ch>2021-12-23 17:14:41 +0100
committersara <sara.halter@gmx.ch>2021-12-23 17:14:41 +0100
commitfa87c9d862b86378791f302160f9e43d06a2df91 (patch)
tree667722c8c43c02a2160ef5dd390a3e0cb21d5be9
parentMerge branch 'master' of github.com:NaoPross/Fading (diff)
downloadFading-fa87c9d862b86378791f302160f9e43d06a2df91.tar.gz
Fading-fa87c9d862b86378791f302160f9e43d06a2df91.zip
Flowgraphs von demo
-rwxr-xr-xflowgraphs/qam_hw.py12
-rw-r--r--flowgraphs/qam_sim.grc12
-rwxr-xr-xflowgraphs/qam_sim.py21
-rw-r--r--flowgraphs/qpsk_hw.grc22
-rwxr-xr-xflowgraphs/qpsk_hw.py22
-rw-r--r--flowgraphs/qpsk_sim.grc22
-rwxr-xr-xflowgraphs/qpsk_sim.py14
-rw-r--r--tests/MATLAB-Dateien/MATLAB.htm (renamed from tests/MATLAB.htm)0
8 files changed, 44 insertions, 81 deletions
diff --git a/flowgraphs/qam_hw.py b/flowgraphs/qam_hw.py
index d49b8e7..ba22d5b 100755
--- a/flowgraphs/qam_hw.py
+++ b/flowgraphs/qam_hw.py
@@ -239,14 +239,6 @@ class qam_hw(gr.top_block, Qt.QWidget):
self.blocks_stream_mux_0 = blocks.stream_mux(gr.sizeof_char*1, [len(testvec), 4, 0])
self.blocks_repack_bits_bb_0 = blocks.repack_bits_bb(2, 8, "", False, gr.GR_LSB_FIRST)
self.blocks_null_source_0 = blocks.null_source(gr.sizeof_char*1)
- self.blocks_file_sink_3 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/locked_qam_hw.dat', False)
- self.blocks_file_sink_3.set_unbuffered(False)
- self.blocks_file_sink_2 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/equalized_qam_hw.dat', False)
- self.blocks_file_sink_2.set_unbuffered(False)
- self.blocks_file_sink_1 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/synchronized_qam_hw.dat', False)
- self.blocks_file_sink_1.set_unbuffered(False)
- self.blocks_file_sink_0 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/channel_qam_hw.dat', False)
- self.blocks_file_sink_0.set_unbuffered(False)
self.blocks_complex_to_mag_0 = blocks.complex_to_mag(1)
self.analog_random_source_x_0 = blocks.vector_source_b(list(map(int, numpy.random.randint(0, 255, 400))), True)
@@ -268,19 +260,15 @@ class qam_hw(gr.top_block, Qt.QWidget):
self.connect((self.digital_constellation_modulator_0, 0), (self.channels_channel_model_0, 0))
self.connect((self.digital_corr_est_cc_0, 1), (self.blocks_complex_to_mag_0, 0))
self.connect((self.digital_corr_est_cc_0, 0), (self.fadingui_phasecorrection_0, 0))
- self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.blocks_file_sink_2, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.digital_corr_est_cc_0, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.fadingui_netsink_1, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.qtgui_const_sink_x_0, 1))
- self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.blocks_file_sink_1, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.digital_lms_dd_equalizer_cc_0, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.fadingui_netsink_4, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.qtgui_const_sink_x_0, 0))
- self.connect((self.fadingui_phasecorrection_0, 0), (self.blocks_file_sink_3, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.digital_constellation_decoder_cb_0, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.fadingui_netsink_3, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.qtgui_const_sink_x_0, 2))
- self.connect((self.uhd_usrp_source_0, 0), (self.blocks_file_sink_0, 0))
self.connect((self.uhd_usrp_source_0, 0), (self.digital_pfb_clock_sync_xxx_0, 0))
self.connect((self.uhd_usrp_source_0, 0), (self.fadingui_netsink_0, 0))
diff --git a/flowgraphs/qam_sim.grc b/flowgraphs/qam_sim.grc
index 6ef347a..bdb8376 100644
--- a/flowgraphs/qam_sim.grc
+++ b/flowgraphs/qam_sim.grc
@@ -285,7 +285,7 @@ blocks:
bus_structure: null
coordinate: [984, 852.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_1
id: blocks_file_sink
parameters:
@@ -303,7 +303,7 @@ blocks:
bus_structure: null
coordinate: [520, 1308.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_2
id: blocks_file_sink
parameters:
@@ -321,7 +321,7 @@ blocks:
bus_structure: null
coordinate: [792, 1316.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_3
id: blocks_file_sink
parameters:
@@ -339,7 +339,7 @@ blocks:
bus_structure: null
coordinate: [1336, 1060.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_null_source_0
id: blocks_null_source
parameters:
@@ -555,7 +555,7 @@ blocks:
bus_structure: null
coordinate: [608, 748.0]
rotation: 0
- state: enabled
+ state: disabled
- name: digital_constellation_decoder_cb_0
id: digital_constellation_decoder_cb
parameters:
@@ -705,7 +705,7 @@ blocks:
bus_structure: null
coordinate: [648, 924.0]
rotation: 0
- state: disabled
+ state: enabled
- name: fadingui_netsink_0
id: fadingui_netsink
parameters:
diff --git a/flowgraphs/qam_sim.py b/flowgraphs/qam_sim.py
index 3a218f3..8ef5906 100755
--- a/flowgraphs/qam_sim.py
+++ b/flowgraphs/qam_sim.py
@@ -182,6 +182,7 @@ class qam_sim(gr.top_block, Qt.QWidget):
self.fadingui_netsink_3 = fadingui.netsink(address='udp://localhost:31419', dtype="complex", vlen=1)
self.fadingui_netsink_1 = fadingui.netsink(address='udp://localhost:31418', dtype="complex", vlen=1)
self.fadingui_netsink_0 = fadingui.netsink(address='udp://localhost:31416', dtype="complex", vlen=1)
+ self.fadingui_multipath_fading_0 = fadingui.multipath_fading(amplitudes=[0.12], delays=[1.8], los =True)
self.fadingui_ber_0 = fadingui.ber(vgl=testvec + list(np.zeros(4)), vlen=frame_len,address='udp://localhost:31415')
self.digital_pfb_clock_sync_xxx_0 = digital.pfb_clock_sync_ccf(sps, 2 * np.pi / 100, rrc_taps, 32, 16, 1.5, 1)
self.digital_lms_dd_equalizer_cc_0 = digital.lms_dd_equalizer_cc(15, 2e-3, 1, qam_const)
@@ -195,7 +196,6 @@ class qam_sim(gr.top_block, Qt.QWidget):
verbose=False,
log=False)
self.digital_constellation_decoder_cb_0 = digital.constellation_decoder_cb(qam_const)
- self.channels_selective_fading_model_0 = channels.selective_fading_model( 8, 70/samp_rate, False, 5, 21, (0,0.05e-6/samp_rate,0.12e-6/samp_rate,0.2e-6/samp_rate,0.23e-6/samp_rate,0.5e-6/samp_rate,1.6e-6/samp_rate,2.3e-6/samp_rate,5e-6/samp_rate), (0.7943282347242815,0.7943282347242815,0.7943282347242815,1,1,1,0.5011872336272722,0.31622776601683794,0.19952623149688797), 9 )
self.channels_channel_model_0 = channels.channel_model(
noise_voltage=100e-3,
frequency_offset=1e-3,
@@ -210,14 +210,6 @@ class qam_sim(gr.top_block, Qt.QWidget):
self.blocks_stream_mux_0 = blocks.stream_mux(gr.sizeof_char*1, [len(testvec), 4, 0])
self.blocks_repack_bits_bb_0 = blocks.repack_bits_bb(2, 8, "", False, gr.GR_LSB_FIRST)
self.blocks_null_source_0 = blocks.null_source(gr.sizeof_char*1)
- self.blocks_file_sink_3 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/locked_qam_sim.dat', False)
- self.blocks_file_sink_3.set_unbuffered(False)
- self.blocks_file_sink_2 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/equalized_qam_sim.dat', False)
- self.blocks_file_sink_2.set_unbuffered(False)
- self.blocks_file_sink_1 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/synchronized_qam_sim.dat', False)
- self.blocks_file_sink_1.set_unbuffered(False)
- self.blocks_file_sink_0 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/channel_qam_sim.dat', False)
- self.blocks_file_sink_0.set_unbuffered(False)
self.blocks_complex_to_mag_0 = blocks.complex_to_mag(1)
self.analog_random_source_x_0 = blocks.vector_source_b(list(map(int, numpy.random.randint(0, 255, 400))), True)
@@ -235,23 +227,19 @@ class qam_sim(gr.top_block, Qt.QWidget):
self.connect((self.blocks_tagged_stream_align_0, 0), (self.blocks_repack_bits_bb_0, 0))
self.connect((self.blocks_throttle_0, 0), (self.channels_channel_model_0, 0))
self.connect((self.blocks_vector_source_x_0, 0), (self.blocks_stream_mux_0, 0))
- self.connect((self.channels_channel_model_0, 0), (self.channels_selective_fading_model_0, 0))
- self.connect((self.channels_selective_fading_model_0, 0), (self.blocks_file_sink_0, 0))
- self.connect((self.channels_selective_fading_model_0, 0), (self.digital_pfb_clock_sync_xxx_0, 0))
- self.connect((self.channels_selective_fading_model_0, 0), (self.fadingui_netsink_0, 0))
+ self.connect((self.channels_channel_model_0, 0), (self.fadingui_multipath_fading_0, 0))
self.connect((self.digital_constellation_decoder_cb_0, 0), (self.blocks_tagged_stream_align_0, 0))
self.connect((self.digital_constellation_modulator_0, 0), (self.blocks_throttle_0, 0))
self.connect((self.digital_corr_est_cc_0, 1), (self.blocks_complex_to_mag_0, 0))
self.connect((self.digital_corr_est_cc_0, 0), (self.fadingui_phasecorrection_0, 0))
- self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.blocks_file_sink_2, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.digital_corr_est_cc_0, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.fadingui_netsink_1, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.qtgui_const_sink_x_0, 1))
- self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.blocks_file_sink_1, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.digital_lms_dd_equalizer_cc_0, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.fadingui_netsink_4, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.qtgui_const_sink_x_0, 0))
- self.connect((self.fadingui_phasecorrection_0, 0), (self.blocks_file_sink_3, 0))
+ self.connect((self.fadingui_multipath_fading_0, 0), (self.digital_pfb_clock_sync_xxx_0, 0))
+ self.connect((self.fadingui_multipath_fading_0, 0), (self.fadingui_netsink_0, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.digital_constellation_decoder_cb_0, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.fadingui_netsink_3, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.qtgui_const_sink_x_0, 2))
@@ -298,7 +286,6 @@ class qam_sim(gr.top_block, Qt.QWidget):
def set_samp_rate(self, samp_rate):
self.samp_rate = samp_rate
self.blocks_throttle_0.set_sample_rate(self.samp_rate)
- self.channels_selective_fading_model_0.set_fDTs(70/self.samp_rate)
self.qtgui_time_sink_x_0.set_samp_rate(self.samp_rate / self.sps)
def get_rrc_taps(self):
diff --git a/flowgraphs/qpsk_hw.grc b/flowgraphs/qpsk_hw.grc
index 053d364..f01606f 100644
--- a/flowgraphs/qpsk_hw.grc
+++ b/flowgraphs/qpsk_hw.grc
@@ -216,7 +216,7 @@ blocks:
bus_structure: null
coordinate: [992, 596.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_1
id: blocks_file_sink
parameters:
@@ -234,7 +234,7 @@ blocks:
bus_structure: null
coordinate: [520, 1196.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_2
id: blocks_file_sink
parameters:
@@ -252,7 +252,7 @@ blocks:
bus_structure: null
coordinate: [768, 1164.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_file_sink_3
id: blocks_file_sink
parameters:
@@ -270,7 +270,7 @@ blocks:
bus_structure: null
coordinate: [1312, 836.0]
rotation: 0
- state: true
+ state: disabled
- name: blocks_repack_bits_bb_0
id: blocks_repack_bits_bb
parameters:
@@ -548,7 +548,7 @@ blocks:
bus_structure: null
coordinate: [768, 916.0]
rotation: 0
- state: enabled
+ state: disabled
- name: fadingui_netsink_3
id: fadingui_netsink
parameters:
@@ -564,7 +564,7 @@ blocks:
bus_structure: null
coordinate: [1312, 924.0]
rotation: 0
- state: enabled
+ state: disabled
- name: fadingui_netsink_4
id: fadingui_netsink
parameters:
@@ -580,7 +580,7 @@ blocks:
bus_structure: null
coordinate: [528, 916.0]
rotation: 0
- state: enabled
+ state: disabled
- name: fadingui_netsink_4_0
id: fadingui_netsink
parameters:
@@ -596,7 +596,7 @@ blocks:
bus_structure: null
coordinate: [992, 684.0]
rotation: 0
- state: enabled
+ state: disabled
- name: fadingui_phasecorrection_0
id: fadingui_phasecorrection
parameters:
@@ -656,10 +656,10 @@ blocks:
comment: ''
grid: 'False'
gui_hint: ''
- label1: ''
+ label1: Synchronized
label10: ''
- label2: ''
- label3: ''
+ label2: Equalized
+ label3: Looked
label4: ''
label5: ''
label6: ''
diff --git a/flowgraphs/qpsk_hw.py b/flowgraphs/qpsk_hw.py
index 0e46532..f298aae 100755
--- a/flowgraphs/qpsk_hw.py
+++ b/flowgraphs/qpsk_hw.py
@@ -181,7 +181,7 @@ class qpsk_hw(gr.top_block, Qt.QWidget):
self.qtgui_const_sink_x_0_0.enable_axis_labels(True)
- labels = ['', '', '', '', '',
+ labels = ['Synchronized', 'Equalized', 'Looked', '', '',
'', '', '', '', '']
widths = [1, 1, 1, 1, 1,
1, 1, 1, 1, 1]
@@ -208,10 +208,6 @@ class qpsk_hw(gr.top_block, Qt.QWidget):
self._qtgui_const_sink_x_0_0_win = sip.wrapinstance(self.qtgui_const_sink_x_0_0.pyqwidget(), Qt.QWidget)
self.top_grid_layout.addWidget(self._qtgui_const_sink_x_0_0_win)
self.fadingui_phasecorrection_0 = fadingui.phasecorrection(frame_len)
- self.fadingui_netsink_4_0 = fadingui.netsink(address='udp://localhost:31416', dtype="complex", vlen=1)
- self.fadingui_netsink_4 = fadingui.netsink(address='udp://localhost:31417', dtype="complex", vlen=1)
- self.fadingui_netsink_3 = fadingui.netsink(address='udp://localhost:31419', dtype="complex", vlen=1)
- self.fadingui_netsink_1 = fadingui.netsink(address='udp://localhost:31418', dtype="complex", vlen=1)
self.fadingui_ber_0 = fadingui.ber(vgl=testvec + list(np.zeros(4)), vlen=frame_len,address='udp://localhost:31420')
self.digital_pfb_clock_sync_xxx_0 = digital.pfb_clock_sync_ccf(sps, 2 * np.pi / 100, rrc_taps, 32, 16, 1.5, 1)
self.digital_lms_dd_equalizer_cc_0 = digital.lms_dd_equalizer_cc(15, 3e-3, 1, qpsk_const)
@@ -230,14 +226,6 @@ class qpsk_hw(gr.top_block, Qt.QWidget):
self.blocks_stream_to_vector_0 = blocks.stream_to_vector(gr.sizeof_char*1, frame_len)
self.blocks_stream_mux_0 = blocks.stream_mux(gr.sizeof_char*1, [len(testvec), 4])
self.blocks_repack_bits_bb_0 = blocks.repack_bits_bb(2, 8, "", False, gr.GR_LSB_FIRST)
- self.blocks_file_sink_3 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/locked_qpsk_hw.dat', False)
- self.blocks_file_sink_3.set_unbuffered(False)
- self.blocks_file_sink_2 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/equalized_qpsk_hw.dat', False)
- self.blocks_file_sink_2.set_unbuffered(False)
- self.blocks_file_sink_1 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/synchronized_qpsk_hw.dat', False)
- self.blocks_file_sink_1.set_unbuffered(False)
- self.blocks_file_sink_0 = blocks.file_sink(gr.sizeof_gr_complex*1, 'data/channel_qpsk_hw.dat', False)
- self.blocks_file_sink_0.set_unbuffered(False)
self.blocks_complex_to_mag_0 = blocks.complex_to_mag(1)
self.analog_random_source_x_0 = blocks.vector_source_b(list(map(int, numpy.random.randint(0, 255, 400))), True)
@@ -257,21 +245,13 @@ class qpsk_hw(gr.top_block, Qt.QWidget):
self.connect((self.digital_constellation_modulator_0, 0), (self.uhd_usrp_sink_0, 0))
self.connect((self.digital_corr_est_cc_0, 1), (self.blocks_complex_to_mag_0, 0))
self.connect((self.digital_corr_est_cc_0, 0), (self.fadingui_phasecorrection_0, 0))
- self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.blocks_file_sink_2, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.digital_corr_est_cc_0, 0))
- self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.fadingui_netsink_1, 0))
self.connect((self.digital_lms_dd_equalizer_cc_0, 0), (self.qtgui_const_sink_x_0_0, 1))
- self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.blocks_file_sink_1, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.digital_lms_dd_equalizer_cc_0, 0))
- self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.fadingui_netsink_4, 0))
self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.qtgui_const_sink_x_0_0, 0))
- self.connect((self.fadingui_phasecorrection_0, 0), (self.blocks_file_sink_3, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.digital_constellation_decoder_cb_0, 0))
- self.connect((self.fadingui_phasecorrection_0, 0), (self.fadingui_netsink_3, 0))
self.connect((self.fadingui_phasecorrection_0, 0), (self.qtgui_const_sink_x_0_0, 2))
- self.connect((self.uhd_usrp_source_0, 0), (self.blocks_file_sink_0, 0))
self.connect((self.uhd_usrp_source_0, 0), (self.digital_pfb_clock_sync_xxx_0, 0))
- self.connect((self.uhd_usrp_source_0, 0), (self.fadingui_netsink_4_0, 0))
def closeEvent(self, event):
diff --git a/flowgraphs/qpsk_sim.grc b/flowgraphs/qpsk_sim.grc
index fe07f14..58fe939 100644
--- a/flowgraphs/qpsk_sim.grc
+++ b/flowgraphs/qpsk_sim.grc
@@ -56,7 +56,7 @@ blocks:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [472, 572.0]
+ coordinate: [456, 556.0]
rotation: 0
state: true
- name: excess_bw
@@ -257,7 +257,7 @@ blocks:
bus_structure: null
coordinate: [992, 524.0]
rotation: 0
- state: enabled
+ state: disabled
- name: blocks_file_sink_1
id: blocks_file_sink
parameters:
@@ -275,7 +275,7 @@ blocks:
bus_structure: null
coordinate: [1280, 820.0]
rotation: 0
- state: enabled
+ state: disabled
- name: blocks_file_sink_2
id: blocks_file_sink
parameters:
@@ -293,7 +293,7 @@ blocks:
bus_structure: null
coordinate: [528, 1084.0]
rotation: 0
- state: enabled
+ state: disabled
- name: blocks_file_sink_3
id: blocks_file_sink
parameters:
@@ -311,7 +311,7 @@ blocks:
bus_structure: null
coordinate: [768, 828.0]
rotation: 0
- state: enabled
+ state: disabled
- name: blocks_null_source_0
id: blocks_null_source
parameters:
@@ -484,12 +484,12 @@ blocks:
bus_structure: null
coordinate: [312, 716.0]
rotation: 0
- state: bypassed
+ state: enabled
- name: channels_selective_fading_model_0
id: channels_selective_fading_model
parameters:
K: '5'
- LOS: 'True'
+ LOS: 'False'
N: '8'
affinity: ''
alias: ''
@@ -507,7 +507,7 @@ blocks:
bus_structure: null
coordinate: [592, 572.0]
rotation: 0
- state: disabled
+ state: enabled
- name: digital_cma_equalizer_cc_0
id: digital_cma_equalizer_cc
parameters:
@@ -657,7 +657,7 @@ blocks:
bus_structure: null
coordinate: [648, 740.0]
rotation: 0
- state: enabled
+ state: disabled
- name: fadingui_netsink_0
id: fadingui_netsink
parameters:
@@ -889,9 +889,9 @@ blocks:
comment: ''
grid: 'False'
gui_hint: ''
- label1: ''
+ label1: Synchronized
label10: ''
- label2: ''
+ label2: Lookd
label3: ''
label4: ''
label5: ''
diff --git a/flowgraphs/qpsk_sim.py b/flowgraphs/qpsk_sim.py
index b12e1a9..cab8e2b 100755
--- a/flowgraphs/qpsk_sim.py
+++ b/flowgraphs/qpsk_sim.py
@@ -104,7 +104,7 @@ class qpsk_sim(gr.top_block, Qt.QWidget):
self.qtgui_const_sink_x_1.enable_axis_labels(True)
- labels = ['', '', '', '', '',
+ labels = ['Synchronized', 'Lookd', '', '', '',
'', '', '', '', '']
widths = [1, 1, 1, 1, 1,
1, 1, 1, 1, 1]
@@ -149,7 +149,14 @@ class qpsk_sim(gr.top_block, Qt.QWidget):
log=False)
self.digital_constellation_decoder_cb_0 = digital.constellation_decoder_cb(qpsk_const)
self.digital_cma_equalizer_cc_0 = digital.cma_equalizer_cc(15, 1, 2e-3, 1)
- self.channels_selective_fading_model_0 = channels.selective_fading_model( 8, 5/samp_rate, True, 5, 0, (0,0.05e-6/samp_rate,0.12e-6/samp_rate,0.2e-6/samp_rate,0.23e-6/samp_rate,0.5e-6/samp_rate,1.6e-6/samp_rate,2.3e-6/samp_rate,5e-6/samp_rate), (0.7943282347242815,0.7943282347242815,0.7943282347242815,1,1,1,0.5011872336272722,0.31622776601683794,0.19952623149688797), 9 )
+ self.channels_selective_fading_model_0 = channels.selective_fading_model( 8, 5/samp_rate, False, 5, 0, (0,0.05e-6/samp_rate,0.12e-6/samp_rate,0.2e-6/samp_rate,0.23e-6/samp_rate,0.5e-6/samp_rate,1.6e-6/samp_rate,2.3e-6/samp_rate,5e-6/samp_rate), (0.7943282347242815,0.7943282347242815,0.7943282347242815,1,1,1,0.5011872336272722,0.31622776601683794,0.19952623149688797), 9 )
+ self.channels_channel_model_0 = channels.channel_model(
+ noise_voltage=100e-3,
+ frequency_offset=2e-3,
+ epsilon=1.0,
+ taps=[np.exp(1j * 30 / 180 * np.pi)],
+ noise_seed=243,
+ block_tags=False)
self.blocks_vector_source_x_0 = blocks.vector_source_b(testvec, True, 1, [])
self.blocks_throttle_0 = blocks.throttle(gr.sizeof_gr_complex*1, samp_rate,True)
self.blocks_tagged_stream_align_0 = blocks.tagged_stream_align(gr.sizeof_char*1, 'frame_start')
@@ -170,8 +177,9 @@ class qpsk_sim(gr.top_block, Qt.QWidget):
self.connect((self.blocks_stream_mux_0, 0), (self.digital_constellation_modulator_0, 0))
self.connect((self.blocks_stream_to_vector_0, 0), (self.fadingui_ber_0, 0))
self.connect((self.blocks_tagged_stream_align_0, 0), (self.blocks_repack_bits_bb_0, 0))
- self.connect((self.blocks_throttle_0, 0), (self.channels_selective_fading_model_0, 0))
+ self.connect((self.blocks_throttle_0, 0), (self.channels_channel_model_0, 0))
self.connect((self.blocks_vector_source_x_0, 0), (self.blocks_stream_mux_0, 0))
+ self.connect((self.channels_channel_model_0, 0), (self.channels_selective_fading_model_0, 0))
self.connect((self.channels_selective_fading_model_0, 0), (self.digital_pfb_clock_sync_xxx_0, 0))
self.connect((self.channels_selective_fading_model_0, 0), (self.fadingui_netsink_0, 0))
self.connect((self.digital_cma_equalizer_cc_0, 0), (self.digital_corr_est_cc_0, 0))
diff --git a/tests/MATLAB.htm b/tests/MATLAB-Dateien/MATLAB.htm
index dfebc45..dfebc45 100644
--- a/tests/MATLAB.htm
+++ b/tests/MATLAB-Dateien/MATLAB.htm