aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-19 02:51:04 +0100
committerNao Pross <np@0hm.ch>2021-12-19 02:51:04 +0100
commitcbf0d8ce166a78e6d05da7253b6272db6f8861eb (patch)
tree1e6d6a7fed6190550de087197986c3a36cda4626 /doc
parentAdd constellation plots for dynamic model (diff)
downloadFading-cbf0d8ce166a78e6d05da7253b6272db6f8861eb.tar.gz
Fading-cbf0d8ce166a78e6d05da7253b6272db6f8861eb.zip
Add samples for QPSK with hardware
Diffstat (limited to 'doc')
-rw-r--r--doc/thesis/Makefile4
-rw-r--r--doc/thesis/figures/data/flowgraphs/channel_qpsk_hw_lab.datbin0 -> 13992888 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/equalized_qpsk_hw_lab.datbin0 -> 3497888 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/locked_qpsk_hw_lab.datbin0 -> 3497832 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/synchronized_qpsk_hw_lab.datbin0 -> 3497888 bytes
-rw-r--r--doc/thesis/figures/data/qpsk_hw_lab.py31
6 files changed, 33 insertions, 2 deletions
diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile
index 6d2d4ba..f705a6b 100644
--- a/doc/thesis/Makefile
+++ b/doc/thesis/Makefile
@@ -29,11 +29,12 @@ SOURCES := \
figures/tikz/qpsk-simulations-static.tex \
figures/tikz/qpsk-simulations-dynamic.tex
-
DATA := \
figures/data/multipath_frequency_response.dat \
figures/data/rice_pdf.dat \
\
+ figures/data/qpsk_hw_lab.dat \
+ \
figures/data/qpsk_sim_nochannel.dat \
\
figures/data/qpsk_sim_static_firblock_los_halfsymb.dat \
@@ -47,7 +48,6 @@ DATA := \
figures/data/qpsk_sim_dynamic_grblock_nlos_etsi_doppler70.dat
-
# Get the main file from the file
MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES))
PDF := $(patsubst %.tex, %.pdf, $(MAIN))
diff --git a/doc/thesis/figures/data/flowgraphs/channel_qpsk_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/channel_qpsk_hw_lab.dat
new file mode 100644
index 0000000..80b01ca
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/channel_qpsk_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/equalized_qpsk_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/equalized_qpsk_hw_lab.dat
new file mode 100644
index 0000000..13dbddf
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/equalized_qpsk_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/locked_qpsk_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/locked_qpsk_hw_lab.dat
new file mode 100644
index 0000000..a2581ce
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/locked_qpsk_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/synchronized_qpsk_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/synchronized_qpsk_hw_lab.dat
new file mode 100644
index 0000000..5ce1df2
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/synchronized_qpsk_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/qpsk_hw_lab.py b/doc/thesis/figures/data/qpsk_hw_lab.py
new file mode 100644
index 0000000..a8170c6
--- /dev/null
+++ b/doc/thesis/figures/data/qpsk_hw_lab.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+
+import utils
+import numpy as np
+
+# get array of samples [channel, synchronized, equalized, locked]
+samples = utils.load_samples(__file__)
+
+# range of samples we want to show
+start = 1e3
+end = start +50
+
+# select every second samples
+select_samples = lambda arr: arr[int(start):int(end):2]
+values = map(select_samples, samples)
+
+# split into imaginary and real parts
+get_parts = lambda v: (np.real(v), np.imag(v))
+parts = [p for v in map(get_parts, values) for p in v]
+
+# zip data and add header
+data = np.array(list(zip(*parts)))
+headers = [
+ "channel_re", "channel_im",
+ "synchronized_re", "synchronized_im",
+ "equalized_re", "equalized_im",
+ "locked_re", "locked_im"
+]
+
+# save to file
+utils.save_to_file(__file__, data, headers)