aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/python/qa_ber.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-03 22:20:21 +0100
committerNao Pross <np@0hm.ch>2021-12-03 22:20:21 +0100
commitc078c8e31e970caf154f0c35160e32101e6596ba (patch)
tree20b8e2e3e154d325bbe946638efbc52252cd9bd1 /src/gr-fadingui/python/qa_ber.py
parentReplace DearPyGui Sink with Network Sink (diff)
parentBER Block Fertig gestellt (diff)
downloadFading-c078c8e31e970caf154f0c35160e32101e6596ba.tar.gz
Fading-c078c8e31e970caf154f0c35160e32101e6596ba.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to '')
-rwxr-xr-xsrc/gr-fadingui/python/qa_ber.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gr-fadingui/python/qa_ber.py b/src/gr-fadingui/python/qa_ber.py
index 8b6d56e..cb6c198 100755
--- a/src/gr-fadingui/python/qa_ber.py
+++ b/src/gr-fadingui/python/qa_ber.py
@@ -22,6 +22,7 @@
from gnuradio import gr, gr_unittest
from gnuradio import blocks
from ber import ber
+import numpy as np
class qa_ber(gr_unittest.TestCase):
@@ -32,9 +33,15 @@ class qa_ber(gr_unittest.TestCase):
self.tb = None
def test_001_t(self):
- # set up fg
- self.tb.run()
- # check data
+ # pattern = np.array([0xaa], dtype=np.uint8)
+ # testdata = np.array([0xc0, 0xfa, 0xae] * 4, dtype=np.uint8)
+
+ # src = blocks.vector_source_b(testdata)
+ # op = ber(pattern)
+
+ # self.tb.connect(src, op)
+ # self.tb.run()
+ pass
if __name__ == '__main__':