aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorsara <sara.halter@gmx.ch>2021-12-03 20:46:20 +0100
committersara <sara.halter@gmx.ch>2021-12-03 20:46:20 +0100
commitcafce753722ec8d396cadfdf991b5c6f5a18dc12 (patch)
treef51c4e5255ccca8989a13b870ebdaeddafa9c8bb /simulation
parentImprove frequency LPF (diff)
downloadFading-cafce753722ec8d396cadfdf991b5c6f5a18dc12.tar.gz
Fading-cafce753722ec8d396cadfdf991b5c6f5a18dc12.zip
BER Block Fertig gestellt
Diffstat (limited to 'simulation')
-rw-r--r--simulation/QAM_Fading/Alte_versionen/qam_fading_FIR_Filter_v1.grc (renamed from simulation/QAM_Fading/qam_fading_FIR_Filter_v1.grc)0
-rw-r--r--simulation/QAM_Fading/Alte_versionen/qam_fading_V2.grc (renamed from simulation/QAM_Fading/qam_fading_V2.grc)0
-rw-r--r--simulation/QAM_Fading/Alte_versionen/qam_fading_V2_mehrere.grc (renamed from simulation/QAM_Fading/qam_fading_V2_mehrere.grc)0
-rw-r--r--simulation/QAM_Fading/Alte_versionen/qam_fading_frequency_selectiv.grc (renamed from simulation/QAM_Fading/qam_fading_frequency_selectiv_copy.grc)20
-rw-r--r--simulation/QAM_Fading/epy_block_0.py74
-rw-r--r--simulation/QAM_Fading/qam_fading_frequency_selectiv.grc20
6 files changed, 20 insertions, 94 deletions
diff --git a/simulation/QAM_Fading/qam_fading_FIR_Filter_v1.grc b/simulation/QAM_Fading/Alte_versionen/qam_fading_FIR_Filter_v1.grc
index ffc47f6..ffc47f6 100644
--- a/simulation/QAM_Fading/qam_fading_FIR_Filter_v1.grc
+++ b/simulation/QAM_Fading/Alte_versionen/qam_fading_FIR_Filter_v1.grc
diff --git a/simulation/QAM_Fading/qam_fading_V2.grc b/simulation/QAM_Fading/Alte_versionen/qam_fading_V2.grc
index 16fa2e3..16fa2e3 100644
--- a/simulation/QAM_Fading/qam_fading_V2.grc
+++ b/simulation/QAM_Fading/Alte_versionen/qam_fading_V2.grc
diff --git a/simulation/QAM_Fading/qam_fading_V2_mehrere.grc b/simulation/QAM_Fading/Alte_versionen/qam_fading_V2_mehrere.grc
index d5444ad..d5444ad 100644
--- a/simulation/QAM_Fading/qam_fading_V2_mehrere.grc
+++ b/simulation/QAM_Fading/Alte_versionen/qam_fading_V2_mehrere.grc
diff --git a/simulation/QAM_Fading/qam_fading_frequency_selectiv_copy.grc b/simulation/QAM_Fading/Alte_versionen/qam_fading_frequency_selectiv.grc
index ce87db8..fc3cebd 100644
--- a/simulation/QAM_Fading/qam_fading_frequency_selectiv_copy.grc
+++ b/simulation/QAM_Fading/Alte_versionen/qam_fading_frequency_selectiv.grc
@@ -453,24 +453,24 @@ blocks:
- name: channels_selective_fading_model_0
id: channels_selective_fading_model
parameters:
- K: '4'
- LOS: 'True'
+ K: '4.0'
+ LOS: 'False'
N: '8'
affinity: ''
alias: ''
comment: ''
- delays: (0,0.3e-6)
+ delays: (0.0,0.1,1.3)
fDTs: '0'
- mags: (1,0.39)
+ mags: (1,0.99,0.97)
maxoutbuf: '0'
minoutbuf: '0'
- ntaps: '3'
+ ntaps: '4'
seed: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [976, 308.0]
+ coordinate: [944, 316.0]
rotation: 0
state: true
- name: digital_cma_equalizer_cc_0
@@ -700,7 +700,7 @@ blocks:
maxoutbuf: '0'
minoutbuf: '0'
osps: '1'
- sps: 'sps '
+ sps: sps * 1.001
taps: rrc_taps
type: ccf
states:
@@ -867,7 +867,7 @@ blocks:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [1036.0, -64]
+ coordinate: [1044.0, -48]
rotation: 90
state: enabled
- name: qtgui_const_sink_x_0_0
@@ -1223,7 +1223,7 @@ blocks:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [1080.0, 656]
+ coordinate: [1024.0, 624]
rotation: 270
state: true
- name: qtgui_freq_sink_x_2_1
@@ -1305,7 +1305,7 @@ blocks:
bus_structure: null
coordinate: [2848, 488.0]
rotation: 0
- state: disabled
+ state: true
- name: qtgui_time_sink_x_0
id: qtgui_time_sink_x
parameters:
diff --git a/simulation/QAM_Fading/epy_block_0.py b/simulation/QAM_Fading/epy_block_0.py
deleted file mode 100644
index 48fe6e9..0000000
--- a/simulation/QAM_Fading/epy_block_0.py
+++ /dev/null
@@ -1,74 +0,0 @@
-"""
-Embedded Python Blocks:
-
-Each time this file is saved, GRC will instantiate the first class it finds
-to get ports and parameters of your block. The arguments to __init__ will
-be the parameters. All of them are required to have default values!
-"""
-
-import numpy as np
-from numpy.fft import fft,ifft,fftshift
-from gnuradio import gr
-
-
-class blk(gr.sync_block): # other base classes are basic_block, decim_block, interp_block
- """Embedded Python Block example - a simple multiply const"""
-
- def __init__(self, amplitudes=[], delays=[], los=True): # only default arguments here
- """arguments to this function show up as parameters in GRC"""
- gr.sync_block.__init__(
- self,
- name='Embedded Python Block', # will show up in GRC
- in_sig=[np.complex64],
- out_sig=[np.complex64]
- )
- # if an attribute with the same name as a parameter is found,
- # a callback is registered (properties work, too).
- self.amplitudes = amplitudes
- self.delays = delays
- self.temp = [0]
- # if los:
- # self.amplitudes.append(1)
- # self.delays.append(0)
- self.los= 1
- #self.fir =
-
- def work(self, input_items, output_items):
- """example: multiply with constant"""
- inp = input_items[0]
- oup = output_items[0]
-
- if len(self.amplitudes) != len(self.delays):
- raise Exception("Amplitudes and Delay length dont match")
-
- # raise Exception("Delay length can't be one")
- #if np.min(self.delays)<=1:
- # raise Exception("Delay length can't be one")
- max_len = np.max(self.delays)
- sum_x = np.zeros(max_len)
- for(a,d) in zip(self.amplitudes,self.delays):
- # if d-1 <= 0:
- # x = np.concatenate([[a], np.zeros(max_len-1)])
- # else:
- x = np.concatenate([np.zeros(d-1), [a], np.zeros(max_len-d)])
- sum_x += x
-
- sum_x[0] = self.los
- print(sum_x)
-
- #H_int = fft(sum_x)
-
- #h = ifft(H_int)
-
- #h[0]=1
-
- y = np.convolve(inp, sum_x)
-
- y+=np.concatenate([self.temp,np.zeros(len(y)-len(self.temp))])
-
-
- oup[:] = y[:len(inp)]
- self.temp = y[len(inp):]
-
-
- return len(oup) \ No newline at end of file
diff --git a/simulation/QAM_Fading/qam_fading_frequency_selectiv.grc b/simulation/QAM_Fading/qam_fading_frequency_selectiv.grc
index fc3cebd..ce87db8 100644
--- a/simulation/QAM_Fading/qam_fading_frequency_selectiv.grc
+++ b/simulation/QAM_Fading/qam_fading_frequency_selectiv.grc
@@ -453,24 +453,24 @@ blocks:
- name: channels_selective_fading_model_0
id: channels_selective_fading_model
parameters:
- K: '4.0'
- LOS: 'False'
+ K: '4'
+ LOS: 'True'
N: '8'
affinity: ''
alias: ''
comment: ''
- delays: (0.0,0.1,1.3)
+ delays: (0,0.3e-6)
fDTs: '0'
- mags: (1,0.99,0.97)
+ mags: (1,0.39)
maxoutbuf: '0'
minoutbuf: '0'
- ntaps: '4'
+ ntaps: '3'
seed: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [944, 316.0]
+ coordinate: [976, 308.0]
rotation: 0
state: true
- name: digital_cma_equalizer_cc_0
@@ -700,7 +700,7 @@ blocks:
maxoutbuf: '0'
minoutbuf: '0'
osps: '1'
- sps: sps * 1.001
+ sps: 'sps '
taps: rrc_taps
type: ccf
states:
@@ -867,7 +867,7 @@ blocks:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [1044.0, -48]
+ coordinate: [1036.0, -64]
rotation: 90
state: enabled
- name: qtgui_const_sink_x_0_0
@@ -1223,7 +1223,7 @@ blocks:
bus_sink: false
bus_source: false
bus_structure: null
- coordinate: [1024.0, 624]
+ coordinate: [1080.0, 656]
rotation: 270
state: true
- name: qtgui_freq_sink_x_2_1
@@ -1305,7 +1305,7 @@ blocks:
bus_structure: null
coordinate: [2848, 488.0]
rotation: 0
- state: true
+ state: disabled
- name: qtgui_time_sink_x_0
id: qtgui_time_sink_x
parameters: