aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-20 22:57:10 +0100
committerNao Pross <np@0hm.ch>2021-12-20 22:57:10 +0100
commit57cac49a0b3b0378245f02903d6bfdeaf58980da (patch)
treee69d6fc1f093f43341cb1de0543abfe32ca312e0 /doc/thesis
parentRemove old comments, add missing citation (diff)
downloadFading-57cac49a0b3b0378245f02903d6bfdeaf58980da.tar.gz
Fading-57cac49a0b3b0378245f02903d6bfdeaf58980da.zip
Add data and flowgraph for (broken) QAM on hardware
Diffstat (limited to 'doc/thesis')
-rw-r--r--doc/thesis/Makefile1
-rw-r--r--doc/thesis/figures/data/flowgraphs/channel_qam_hw_lab.datbin0 -> 4665496 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/equalized_qam_hw_lab.datbin0 -> 1166056 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/locked_qam_hw_lab.datbin0 -> 1166040 bytes
-rw-r--r--doc/thesis/figures/data/flowgraphs/synchronized_qam_hw_lab.datbin0 -> 1166056 bytes
-rw-r--r--doc/thesis/figures/data/qam_hw_lab.py31
6 files changed, 32 insertions, 0 deletions
diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile
index 0afb1f6..a44ecc6 100644
--- a/doc/thesis/Makefile
+++ b/doc/thesis/Makefile
@@ -35,6 +35,7 @@ DATA := \
figures/data/rice_pdf.dat \
\
figures/data/qpsk_hw_lab.dat \
+ figures/data/qam_hw_lab.dat \
\
figures/data/qpsk_sim_nochannel.dat \
\
diff --git a/doc/thesis/figures/data/flowgraphs/channel_qam_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/channel_qam_hw_lab.dat
new file mode 100644
index 0000000..4a04026
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/channel_qam_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/equalized_qam_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/equalized_qam_hw_lab.dat
new file mode 100644
index 0000000..fa4d8e5
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/equalized_qam_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/locked_qam_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/locked_qam_hw_lab.dat
new file mode 100644
index 0000000..f3c9b92
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/locked_qam_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/flowgraphs/synchronized_qam_hw_lab.dat b/doc/thesis/figures/data/flowgraphs/synchronized_qam_hw_lab.dat
new file mode 100644
index 0000000..cdbbe25
--- /dev/null
+++ b/doc/thesis/figures/data/flowgraphs/synchronized_qam_hw_lab.dat
Binary files differ
diff --git a/doc/thesis/figures/data/qam_hw_lab.py b/doc/thesis/figures/data/qam_hw_lab.py
new file mode 100644
index 0000000..d49cfd1
--- /dev/null
+++ b/doc/thesis/figures/data/qam_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 = 20e3
+end = start +400
+
+# select every second samples
+select_samples = lambda arr: arr[int(start):int(end):6]
+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)