-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sdat.grc
3019 lines (2991 loc) · 102 KB
/
Sdat.grc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
options:
parameters:
author: Bennet L. Ladage
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: Sdat
max_nouts: '0'
output_language: python
placement: (0,0)
qt_qss_theme: ''
realtime_scheduling: ''
run: 'True'
run_command: '{python} -u {filename}'
run_options: prompt
sizing_mode: fixed
thread_safe_setters: ''
title: Sdat - Software Defined Audio Testing, South Westphalia University of Applied
Sciences, Dept. Meschede
window_size: 3000, 3000
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled
blocks:
- name: A_bandwith_classic_sweep
id: variable_qtgui_range
parameters:
comment: normalized bandwith classical sweep
gui_hint: 'sweepsTab@0: 0,0,1,1'
label: Normalized Bandwidth, CL
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '0.01'
step: '0.01'
stop: '1'
value: '0.5'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [384, 396]
rotation: 0
state: enabled
- name: A_noise_out
id: variable_qtgui_range
parameters:
comment: slider amplitude additive noise
gui_hint: 'commonWaveformTab@0: 2,0,1,1'
label: Noise Amplitude
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '0'
step: '0.01'
stop: '1'
value: '0'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [520, 84]
rotation: 0
state: enabled
- name: A_out
id: variable_qtgui_range
parameters:
comment: slider amplitude audio out
gui_hint: 'generalSettingsTab@0: 2,0,1,1'
label: Amplitude
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '0'
step: '0.0001'
stop: '1'
value: '0.2'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [696, 84.0]
rotation: 0
state: enabled
- name: BW_sweep_max
id: variable
parameters:
comment: ''
value: 3e3
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [576, 396.0]
rotation: 0
state: true
- name: B_sweep
id: variable_qtgui_range
parameters:
comment: bandwith sweep
gui_hint: 'sweepsTab@0: 2,0,1,1'
label: Bandwidth, BP (Hz)
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '100'
step: '1'
stop: BW_sweep_max
value: BW_sweep_max / 2.0
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [568, 588]
rotation: 0
state: enabled
- name: N_fft
id: variable
parameters:
comment: 'FFT length for SNR/THD calc
2**14 optimum'
value: 2**14
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 1428]
rotation: 0
state: enabled
- name: R_update_GUI_numbers
id: variable
parameters:
comment: ''
value: '0.1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 1548]
rotation: 0
state: enabled
- name: b_qu
id: variable_qtgui_chooser
parameters:
comment: ''
gui_hint: 'generalSettingsTab@0: 1,0,1,1'
label: Quantization
label0: 1 Bit
label1: 2 Bit
label2: 4 Bit
label3: 8 Bit
label4: 16 Bit
labels: '[]'
num_opts: '5'
option0: '1'
option1: '2'
option2: '4'
option3: '8'
option4: '16'
options: '[0, 1, 2]'
orient: Qt.QHBoxLayout
type: int
value: '16'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1864, 492.0]
rotation: 0
state: enabled
- name: b_qu_in
id: variable_qtgui_chooser
parameters:
comment: quantization input
gui_hint: 'inputFilterTab@0: 1,0,1,1'
label: Quantization
label0: 1 Bit
label1: 2 Bit
label2: 4 Bit
label3: 8 Bit
label4: 16 Bit
labels: '[]'
num_opts: '5'
option0: '1'
option1: '2'
option2: '4'
option3: '8'
option4: '16'
options: '[0, 1, 2]'
orient: Qt.QVBoxLayout
type: int
value: '16'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [856, 852]
rotation: 0
state: enabled
- name: bpRipple
id: variable_qtgui_chooser
parameters:
comment: passband ripple FIR filter, win method
gui_hint: 'inputFilterTab2@0: 3,0,1,1'
label: Max. Stopband Ripple
label0: 45 dB
label1: 54 dB
label2: ''
label3: ''
label4: ''
labels: '["29 dB", "37 dB", "45 dB", "54 dB", "63 dB", "72 dB", "81 dB", "90 dB"]'
num_opts: '0'
option0: '0'
option1: '1'
option2: '2'
option3: '3'
option4: '4'
options: '[2, 3, 4, 5, 6, 7, 8, 9]'
orient: Qt.QVBoxLayout
type: int
value: '4'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [616, 852.0]
rotation: 0
state: enabled
- name: delayMeasurement
id: variable_qtgui_range
parameters:
comment: time between a measured value is stored
gui_hint: 'tabLogger@0: 1,0,1,1'
label: '"Measure Interval (Seconds):"'
min_len: '200'
orient: Qt.Vertical
rangeType: float
start: '0.1'
step: '0.1'
stop: '30'
value: '2'
widget: counter
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [2256, 2124.0]
rotation: 0
state: true
- name: f_0
id: variable_qtgui_range
parameters:
comment: slider frequency audio out
gui_hint: 'commonWaveformTab@0: 1,0,1,1'
label: Frequency (Hz)
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '20'
step: '1'
stop: '20000'
value: '1000'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [856, 84.0]
rotation: 0
state: enabled
- name: f_center_sweep
id: variable_qtgui_range
parameters:
comment: center frequency sweep
gui_hint: 'sweepsTab@0: 1,0,1,1'
label: Center Frequency, BP (Hz)
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: 500.0 + 0.5 * BW_sweep_max
step: '1'
stop: 20e3 - 0.5 * BW_sweep_max
value: 10e3
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [384, 588]
rotation: 0
state: enabled
- name: fcutoff_in
id: variable_qtgui_range
parameters:
comment: cutoff freq filter input
gui_hint: 'inputFilterTab2@0: 2,0,1,1'
label: Cutoff Frequency (Hz)
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: trans_width_in
step: '1'
stop: '20000'
value: '6000'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [616, 1028.0]
rotation: 0
state: enabled
- name: filenameLog
id: variable_qtgui_entry
parameters:
comment: 'set filename data logger;
requires from datetime import datetime
because default name is current date'
gui_hint: 'tabLogger@0: 2,0,1,1'
label: '"Logfile Name [Confirm New via Enter]"'
type: string
value: datetime.now().strftime("%Y-%m-%d")
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [2256, 1996.0]
rotation: 0
state: enabled
- name: fsample_in
id: variable
parameters:
comment: sample frequency for audio input
value: '48000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [16, 1052.0]
rotation: 0
state: enabled
- name: fsample_internal
id: variable
parameters:
comment: internal sample frequency (fixed)
value: '48000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 252]
rotation: 0
state: enabled
- name: fsample_out
id: variable
parameters:
comment: sample frequency for audio output
value: '48000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 160]
rotation: 0
state: enabled
- name: gain_in
id: variable_qtgui_range
parameters:
comment: gain input
gui_hint: 'inputFilterTab2@0: 1,0,1,1'
label: Gain (dB)
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '-60'
step: '0.01'
stop: '60'
value: '0'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [616, 1188.0]
rotation: 0
state: enabled
- name: logfileChooser
id: variable_qtgui_chooser
parameters:
comment: choose if logfile is created
gui_hint: 'tabLogger@0: 0,0,1,1'
label: Logfile Generation
label0: No Logfile / Stop
label1: Continuous Writing
label2: ''
label3: ''
label4: ''
labels: '[]'
num_opts: '2'
option0: '0'
option1: '1'
option2: '2'
option3: '3'
option4: '4'
options: '[0, 1, 2]'
orient: Qt.QHBoxLayout
type: int
value: '0'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [2256, 1812.0]
rotation: 0
state: enabled
- name: trans_width_in
id: variable
parameters:
comment: transision width input filter
value: 0.5e3
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [16, 1148.0]
rotation: 0
state: enabled
- name: uiWaveOrSweep
id: variable_qtgui_chooser
parameters:
comment: choose waveform or sweep
gui_hint: 'generalSettingsTab@0: 0,0,1,1'
label: Test Signal
label0: Common Waveform
label1: Classical Sweep (CL)
label2: Bandpass Sweep (BP)
label3: ''
label4: ''
labels: '[]'
num_opts: '3'
option0: '1'
option1: '2'
option2: '3'
option3: '3'
option4: '4'
options: '[0, 1, 2]'
orient: Qt.QVBoxLayout
type: int
value: '1'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 348.0]
rotation: 0
state: enabled
- name: uiwavef
id: variable_qtgui_chooser
parameters:
comment: choose common waveforms
gui_hint: 'commonWaveformTab@0: 0,0,1,1'
label: Waveform
label0: Sine
label1: Square
label2: Triangle
label3: Sawtooth
label4: ''
labels: '[]'
num_opts: '4'
option0: '101'
option1: '103'
option2: '104'
option3: '105'
option4: '106'
options: '[0, 1, 2]'
orient: Qt.QVBoxLayout
type: int
value: '101'
widget: combo_box
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [384, 84]
rotation: 0
state: enabled
- name: whichFilterIn
id: variable_qtgui_chooser
parameters:
comment: choose which input filter
gui_hint: 'inputFilterTab@0: 0,0,1,1'
label: Input Filter
label0: Gain Only
label1: Lowpass
label2: Highpass
label3: ''
label4: ''
labels: '[]'
num_opts: '3'
option0: '1'
option1: '2'
option2: '3'
option3: '3'
option4: '4'
options: '[0, 1, 2]'
orient: Qt.QVBoxLayout
type: int
value: '1'
widget: radio_buttons
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [416, 852]
rotation: 0
state: enabled
- name: analog_noise_source_x_0
id: analog_noise_source_x
parameters:
affinity: ''
alias: ''
amp: A_noise_out/(2.0 ** 0.5)
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
noise_type: analog.GR_GAUSSIAN
seed: '0'
type: float
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1064, 228]
rotation: 0
state: enabled
- name: analog_sig_source_x_0
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: A_out
comment: ''
freq: f_0
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
phase: '0'
samp_rate: fsample_internal
type: float
waveform: uiwavef
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1024, 68.0]
rotation: 0
state: enabled
- name: audio_sink_0
id: audio_sink
parameters:
affinity: ''
alias: ''
comment: D/A audio output
device_name: ''
num_inputs: '1'
ok_to_block: 'True'
samp_rate: fsample_out
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [2048, 524.0]
rotation: 0
state: enabled
- name: audio_source_0
id: audio_source
parameters:
affinity: ''
alias: ''
comment: A/D audio input
device_name: ''
maxoutbuf: '0'
minoutbuf: '0'
num_outputs: '1'
ok_to_block: 'True'
samp_rate: fsample_in
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [992, 932]
rotation: 0
state: enabled
- name: blk_oscillate_around_0
id: epy_block
parameters:
_source_code: "import numpy as np\nfrom gnuradio import gr\n\n\nclass blk(gr.sync_block):\n\
\n def __init__(self):\n\n gr.sync_block.__init__(\n self,\n\
\ name='Oscillate Around 0', \n in_sig=[np.float32],\n\
\ out_sig=[np.float32]\n )\n\n def work(self, input_items,\
\ output_items):\n #Check if s(n)>0 for all n\n #if all(n >= 0\
\ for n in input_items[0]):\n if min(input_items[0]) >= 0: \n \
\ output_items[0][:] = 2 * (input_items[0] - (0.5*max(input_items[0]))\
\ )\n else:\n output_items[0][:] = input_items[0]\n \
\ return len(output_items[0])\n"
affinity: ''
alias: ''
comment: and correct amplitude
maxoutbuf: '0'
minoutbuf: '0'
states:
_io_cache: ('Oscillate Around 0', 'blk', [], [('0', 'float', 1)], [('0', 'float',
1)], '', [])
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1304, 112.0]
rotation: 0
state: enabled
- name: blk_oscillate_around_0_0
id: epy_block
parameters:
_source_code: "import numpy as np\nfrom gnuradio import gr\n\n\nclass blk(gr.sync_block):\n\
\n def __init__(self, digits=1):\n\n gr.sync_block.__init__(\n \
\ self,\n name=\"round x digits\", \n in_sig=[np.float32],\n\
\ out_sig=[np.float32]\n )\n self.digits = digits\n\
\n def work(self, input_items, output_items):\n \n output_items[0][:]\
\ = np.round(input_items[0], self.digits)\n return len(output_items[0])\n"
affinity: ''
alias: ''
comment: round(s(n), x)
digits: '2'
maxoutbuf: '0'
minoutbuf: '0'
states:
_io_cache: ('round x digits', 'blk', [('digits', '1')], [('0', 'float', 1)], [('0',
'float', 1)], '', ['digits'])
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1840, 1596.0]
rotation: 0
state: enabled
- name: blocks_add_xx_0
id: blocks_add_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1512, 216]
rotation: 0
state: enabled
- name: blocks_add_xx_1
id: blocks_add_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '3'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1776, 856.0]
rotation: 0
state: enabled
- name: blocks_add_xx_1_0
id: blocks_add_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '3'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1800, 408]
rotation: 0
state: enabled
- name: blocks_complex_to_mag_0
id: blocks_complex_to_mag
parameters:
affinity: ''
alias: ''
comment: '|S(k)|'
maxoutbuf: '0'
minoutbuf: '0'
vlen: N_fft
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1064, 1804]
rotation: 0
state: enabled
- name: blocks_complex_to_mag_0_0
id: blocks_complex_to_mag
parameters:
affinity: ''
alias: ''
comment: '|S(k)|'
maxoutbuf: '0'
minoutbuf: '0'
vlen: N_fft
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1080, 1420]
rotation: 0
state: enabled
- name: blocks_divide_xx_0
id: blocks_divide_xx
parameters:
affinity: ''
alias: ''
comment: gain = in / out
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1656, 1584.0]
rotation: 0
state: enabled
- name: blocks_multiply_const_xx_1
id: blocks_multiply_const_xx
parameters:
affinity: ''
alias: ''
comment: Gain Input
const: 10.0 ** (gain_in/20.0)
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1160, 932.0]
rotation: 0
state: enabled
- name: blocks_multiply_const_xx_2
id: blocks_multiply_const_xx
parameters:
affinity: ''
alias: ''
comment: amplitude classical sweep
const: A_out
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1392, 436]
rotation: 0
state: enabled
- name: blocks_multiply_const_xx_2_0
id: blocks_multiply_const_xx
parameters:
affinity: ''
alias: ''
comment: amplitude bandpass sweep
const: A_out
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1408, 628]
rotation: 0
state: enabled
- name: blocks_nlog10_ff_1
id: blocks_nlog10_ff
parameters:
affinity: ''
alias: ''
comment: dB
k: '0'
maxoutbuf: '0'
minoutbuf: '0'
n: '10'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1752, 1596.0]
rotation: 0
state: enabled
- name: blocks_null_sink_0
id: blocks_null_sink
parameters:
affinity: ''
alias: ''
bus_structure_sink: '[[0,],]'
comment: "strange behavior: \nnull sink clears input buffer of the data logger"
num_inputs: '1'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [2296, 1560.0]
rotation: 0
state: enabled
- name: blocks_stream_to_vector_0
id: blocks_stream_to_vector
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_items: N_fft
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [544, 1808.0]
rotation: 0
state: enabled
- name: blocks_stream_to_vector_0_0
id: blocks_stream_to_vector
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_items: N_fft
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [592, 1424.0]
rotation: 0
state: enabled
- name: blocks_vco_f_0
id: blocks_vco_f
parameters:
affinity: ''
alias: ''
amplitude: '1'
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
samp_rate: fsample_internal
sensitivity: 2*np.pi*22000
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1000, 420]
rotation: 0
state: enabled
- name: channels_quantizer_0
id: channels_quantizer
parameters:
affinity: ''
alias: ''
bits: b_qu
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1904, 436]
rotation: 0
state: enabled
- name: channels_quantizer_0_0
id: channels_quantizer
parameters:
affinity: ''
alias: ''
bits: b_qu_in
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1880, 884.0]
rotation: 0
state: enabled
- name: commonWaveformTab
id: qtgui_tab_widget
parameters:
alias: ''
comment: tab settings common wf
gui_hint: 'outOrInTab@0: 1,0,1,1'
label0: 'Common Waveform '
label1: Input Signal
label10: Tab 10
label11: Tab 11
label12: Tab 12
label13: Tab 13
label14: Tab 14
label15: Tab 15
label16: Tab 16
label17: Tab 17
label18: Tab 18
label19: Tab 19
label2: Bandpass Sweep
label3: Tab 3
label4: Tab 4
label5: Tab 5
label6: Tab 6
label7: Tab 7
label8: Tab 8
label9: Tab 9
num_tabs: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [160, 668.0]
rotation: 0
state: enabled
- name: const_out_max_1_0_0
id: epy_block
parameters:
_source_code: "from gnuradio import gr\nfrom scipy import signal\nimport numpy\
\ as np\n\n\nclass blk(gr.sync_block):\n\n def __init__(self, fcenter=1000.0,\
\ bw = 100.0, stopband_ripple = 40.0, passband_ripple=0.2, order = 11, fsample=48000.0):\
\ # only default arguments here\n \"\"\"\n Band-pass IIR filter\
\ (Cheby1) implemented by cascaded second order sections (SOS),\n SOS\
\ better because coefficient quantization and stability\n ---\n \
\ Bennet L. Ladage\n Project Work \"Sdat\"\n 2022-02-08 \n \
\ --- \n\n input:\n in0: x(n), i.e., signal in the\
\ time domain\n \n arguments:\n fcenter: center\
\ frequency in Hz\n bw: bandwidth in Hz\n \
\ stopband_ripple: ~ in dB\n passband_ripple: ~ in dB\n \
\ order: order of the IIR filter\n fsample: \
\ sample frequency in Hz\n \n output:\n out0: y(n), i.e.,\
\ filtered signal x(n)\n \"\"\"\n gr.sync_block.__init__(\n \
\ self,\n name='Band Pass IIR (Cheby1)',\n in_sig=[np.float32],\n\
\ out_sig=[np.float32]\n )\n self.fcenter = fcenter\n\
\ self.bw = bw\n self.stopband_ripple = stopband_ripple\n \
\ self.passband_ripple = passband_ripple\n self.order = order\n \