-
Notifications
You must be signed in to change notification settings - Fork 3
/
digitizers_stft_algorithms.xml
130 lines (125 loc) · 3.12 KB
/
digitizers_stft_algorithms.xml
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
<?xml version="1.0"?>
<block>
<name>B.4 STFT (Static)</name>
<key>digitizers_stft_algorithms</key>
<category>[digitizers]</category>
<import>import digitizers</import>
<import>from gnuradio.filter import firdes</import>
<make>digitizers.stft_algorithms($samp_rate, $delta_t, $win_size, $win_type, $alg_id, $fq_low, $fq_hi, $nbins)</make>
<callback>self.$(id).set_samp_rate($samp_rate)</callback>
<callback>self.$(id).set_window_size($win_size)</callback>
<callback>self.$(id).set_window_type($win_type)</callback>
<callback>self.$(id).set_freqs($fq_low, $fq_hi)</callback>
<param>
<name>Sample rate</name>
<key>samp_rate</key>
<value>samp_rate</value>
<type>float</type>
</param>
<param>
<name>Delta T</name>
<key>delta_t</key>
<value>0.5</value>
<type>float</type>
</param>
<param>
<name>Algorithm</name>
<key>alg_id</key>
<value>0</value>
<type>int</type>
<hide>part</hide>
<option>
<name>FFT</name>
<key>0</key>
</option>
<option>
<name>Goertzel</name>
<key>1</key>
</option>
<option>
<name>DFT</name>
<key>2</key>
</option>
</param>
<param>
<name>Window size</name>
<key>win_size</key>
<value>2048</value>
<type>int</type>
</param>
<param>
<name>Window Type</name>
<key>win_type</key>
<value>firdes.WIN_BLACKMAN_hARRIS</value>
<type>enum</type>
<hide>#if $alg_id() == 0 then 'part' else 'all'#</hide>
<option>
<name>Blackman-harris</name>
<key>firdes.WIN_BLACKMAN_hARRIS</key>
</option>
<option>
<name>Hamming</name>
<key>firdes.WIN_HAMMING</key>
</option>
<option>
<name>Hann</name>
<key>firdes.WIN_HANN</key>
</option>
<option>
<name>Blackman</name>
<key>firdes.WIN_BLACKMAN</key>
</option>
<option>
<name>Rectangular</name>
<key>firdes.WIN_RECTANGULAR</key>
</option>
<option>
<name>Kaiser</name>
<key>firdes.WIN_KAISER</key>
</option>
<option>
<name>Flat-top</name>
<key>firdes.WIN_FLATTOP</key>
</option>
</param>
<param>
<name>Lower frequency</name>
<key>fq_low</key>
<value>0.0</value>
<type>float</type>
<hide>#if $alg_id() == 1 then 'none' else 'all'#</hide>
</param>
<param>
<name>Upper frequency</name>
<key>fq_hi</key>
<value>samp_rate/2</value>
<type>float</type>
<hide>#if $alg_id() == 1 then 'none' else 'all'#</hide>
</param>
<param>
<name>Number of bins</name>
<key>nbins</key>
<value>win_size/2</value>
<type>int</type>
<hide>#if $alg_id() == 1 then 'none' else 'all'#</hide>
</param>
<sink>
<name>sig</name>
<type>float</type>
</sink>
<source>
<name>ampl</name>
<type>float</type>
<vlen>#if $alg_id() == 1 then $nbins() else $win_size()#</vlen>
</source>
<source>
<name>phase</name>
<type>float</type>
<vlen>#if $alg_id() == 1 then $nbins() else $win_size()#</vlen>
</source>
<source>
<name>freqs</name>
<type>float</type>
<vlen>#if $alg_id() == 1 then $nbins() else $win_size()#</vlen>
</source>
</block>