From 8733e3563306a193962d1f87421a2b817eca28f8 Mon Sep 17 00:00:00 2001 From: sara Date: Sat, 6 Nov 2021 17:58:23 +0100 Subject: An scr gearbeitet --- simulation/QPSK/qpsk_nogui.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'simulation/QPSK/qpsk_nogui.py') diff --git a/simulation/QPSK/qpsk_nogui.py b/simulation/QPSK/qpsk_nogui.py index 2b32473..ab5b361 100755 --- a/simulation/QPSK/qpsk_nogui.py +++ b/simulation/QPSK/qpsk_nogui.py @@ -76,8 +76,8 @@ class qpsk_nogui(gr.top_block): self.blocks_null_sink_0 = blocks.null_sink(gr.sizeof_float*1) self.blocks_char_to_float_0 = blocks.char_to_float(1, 1) self.analog_random_source_x_0 = blocks.vector_source_b(list(map(int, numpy.random.randint(0, 256, 1000))), True) - - + # print(list(map(int, numpy.random.randint(0, 256, 1000)))) + ################################################## # Connections @@ -95,6 +95,7 @@ class qpsk_nogui(gr.top_block): self.connect((self.digital_map_bb_0, 0), (self.blocks_unpack_k_bits_bb_0, 0)) self.connect((self.digital_pfb_clock_sync_xxx_0, 0), (self.digital_cma_equalizer_cc_0, 0)) + self.test = "1" def get_sps(self): return self.sps @@ -198,6 +199,8 @@ class qpsk_nogui(gr.top_block): self.chn_taps = chn_taps self.channels_channel_model_0.set_taps(self.chn_taps) + def test_2(self,x): + return "5" @@ -225,6 +228,7 @@ def main(top_block_cls=qpsk_nogui, options=None): tb.stop() tb.wait() +test = "test variabel" if __name__ == '__main__': main() -- cgit v1.2.1