File: fosphor_wx_sink_c.xml

package info (click to toggle)
gr-fosphor 3.7.0.2.7b6b996-1~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,364 kB
  • sloc: python: 9,622; ansic: 3,211; cpp: 1,048; lisp: 609; xml: 260; makefile: 32
file content (105 lines) | stat: -rw-r--r-- 2,584 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>
<block>
  <name>WX fosphor sink</name>
  <key>fosphor_wx_sink_c</key>
  <category>Instrumentation/WX</category>
  <import>from gnuradio import fosphor</import>
  <import>from gnuradio.fft import window</import>
  <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
fosphor.wx_sink_c(
	$(parent).GetWin()
#if $win_size()
	size=$win_size,
#end if
)
self.$(id).set_fft_window($wintype)
self.$(id).set_frequency_range($freq_center, $freq_span)
#if not $grid_pos()
$(parent).Add(self.$(id).win)
#else
$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
#end if</make>
  <callback>set_fft_window($wintype)</callback>
  <callback>set_frequency_range($freq_center, $freq_span)</callback>
  <param>
    <name>Window Type</name>
    <key>wintype</key>
    <value>window.WIN_BLACKMAN_hARRIS</value>
    <type>int</type>
    <hide>part</hide>
    <option>
      <name>Blackman-harris</name>
      <key>window.WIN_BLACKMAN_hARRIS</key>
    </option>
    <option>
      <name>Hamming</name>
      <key>window.WIN_HAMMING</key>
    </option>
    <option>
      <name>Hann</name>
      <key>window.WIN_HANN</key>
    </option>
    <option>
      <name>Blackman</name>
      <key>window.WIN_BLACKMAN</key>
    </option>
    <option>
      <name>Rectangular</name>
      <key>window.WIN_RECTANGULAR</key>
    </option>
    <option>
      <name>Kaiser</name>
      <key>window.WIN_KAISER</key>
    </option>
  </param>
  <param>
    <name>Center Frequency (Hz)</name>
    <key>freq_center</key>
    <value>0</value>
    <type>real</type>
  </param>
  <param>
    <name>Span (Hz)</name>
    <key>freq_span</key>
    <value>samp_rate</value>
    <type>real</type>
  </param>
  <param>
    <name>Window Size</name>
    <key>win_size</key>
    <value></value>
    <type>int_vector</type>
    <hide>#if $win_size() then 'none' else 'part'#</hide>
  </param>
  <param>
    <name>Grid Position</name>
    <key>grid_pos</key>
    <value></value>
    <type>grid_pos</type>
  </param>
  <param>
    <name>Notebook</name>
    <key>notebook</key>
    <value></value>
    <type>notebook</type>
  </param>
  <check>not $win_size or len($win_size) == 2</check>
  <sink>
    <name>in</name>
    <type>complex</type>
  </sink>

  <doc>
    Key Bindings
    ============
    z:      toggle zoom mode
    a/d:    move zoom frequency down/up
    s/w:    adjust zoom width
    q/e:    adjust screen split between waterfall and fft
    space:  pause display

    (left)/(right)  adjust dB/div
    (up)/(down)     adjust reference level

  </doc>
</block>