~ubuntu-branches/ubuntu/precise/gnuradio/precise

« back to all changes in this revision

Viewing changes to grc/blocks/wxgui_numbersink2.xml

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
###################################################
 
4
##Number Sink
 
5
###################################################
 
6
 -->
 
7
<block>
 
8
        <name>Number Sink</name>
 
9
        <key>wxgui_numbersink2</key>
 
10
        <import>from gnuradio.wxgui import numbersink2</import>
 
11
        <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
 
12
numbersink2.$(type.fcn)(
 
13
        $(parent).GetWin(),
 
14
        unit=$units,
 
15
        minval=$min_value,
 
16
        maxval=$max_value,
 
17
        factor=$factor,
 
18
        decimal_places=$decimal_places,
 
19
        ref_level=$ref_level,
 
20
        sample_rate=$samp_rate,
 
21
        number_rate=$number_rate,
 
22
        average=$average,
 
23
        avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
 
24
        label=$title,
 
25
        peak_hold=$peak_hold,
 
26
        show_gauge=$show_gauge,
 
27
)
 
28
#if not $grid_pos()
 
29
$(parent).Add(self.$(id).win)
 
30
#else
 
31
$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
 
32
#end if</make>
 
33
        <param>
 
34
                <name>Type</name>
 
35
                <key>type</key>
 
36
                <value>complex</value>
 
37
                <type>enum</type>
 
38
                <option>
 
39
                        <name>Complex</name>
 
40
                        <key>complex</key>
 
41
                        <opt>fcn:number_sink_c</opt>
 
42
                </option>
 
43
                <option>
 
44
                        <name>Float</name>
 
45
                        <key>float</key>
 
46
                        <opt>fcn:number_sink_f</opt>
 
47
                </option>
 
48
        </param>
 
49
        <param>
 
50
                <name>Title</name>
 
51
                <key>title</key>
 
52
                <value>Number Plot</value>
 
53
                <type>string</type>
 
54
        </param>
 
55
        <param>
 
56
                <name>Units</name>
 
57
                <key>units</key>
 
58
                <value>Units</value>
 
59
                <type>string</type>
 
60
        </param>
 
61
        <param>
 
62
                <name>Sample Rate</name>
 
63
                <key>samp_rate</key>
 
64
                <value>samp_rate</value>
 
65
                <type>real</type>
 
66
        </param>
 
67
        <param>
 
68
                <name>Min Value</name>
 
69
                <key>min_value</key>
 
70
                <value>-100</value>
 
71
                <type>real</type>
 
72
        </param>
 
73
        <param>
 
74
                <name>Max Value</name>
 
75
                <key>max_value</key>
 
76
                <value>100</value>
 
77
                <type>real</type>
 
78
        </param>
 
79
        <param>
 
80
                <name>Factor</name>
 
81
                <key>factor</key>
 
82
                <value>1.0</value>
 
83
                <type>real</type>
 
84
        </param>
 
85
        <param>
 
86
                <name>Decimal Places</name>
 
87
                <key>decimal_places</key>
 
88
                <value>10</value>
 
89
                <type>int</type>
 
90
        </param>
 
91
        <param>
 
92
                <name>Reference Level</name>
 
93
                <key>ref_level</key>
 
94
                <value>0</value>
 
95
                <type>real</type>
 
96
        </param>
 
97
        <param>
 
98
                <name>Number Rate</name>
 
99
                <key>number_rate</key>
 
100
                <value>15</value>
 
101
                <type>int</type>
 
102
        </param>
 
103
        <param>
 
104
                <name>Peak Hold</name>
 
105
                <key>peak_hold</key>
 
106
                <value>False</value>
 
107
                <type>enum</type>
 
108
                <hide>#if $peak_hold() == 'True' then 'none' else 'part'#</hide>
 
109
                <option>
 
110
                        <name>On</name>
 
111
                        <key>True</key>
 
112
                </option>
 
113
                <option>
 
114
                        <name>Off</name>
 
115
                        <key>False</key>
 
116
                </option>
 
117
        </param>
 
118
        <param>
 
119
                <name>Average</name>
 
120
                <key>average</key>
 
121
                <value>False</value>
 
122
                <type>enum</type>
 
123
                <hide>#if $average() == 'True' then 'none' else 'part'#</hide>
 
124
                <option>
 
125
                        <name>On</name>
 
126
                        <key>True</key>
 
127
                </option>
 
128
                <option>
 
129
                        <name>Off</name>
 
130
                        <key>False</key>
 
131
                </option>
 
132
        </param>
 
133
        <param>
 
134
                <name>Average Alpha</name>
 
135
                <key>avg_alpha</key>
 
136
                <value>0</value>
 
137
                <type>real</type>
 
138
                <hide>#if $average() == 'True' then 'none' else 'all'#</hide>
 
139
        </param>
 
140
        <param>
 
141
                <name>Show Gauge</name>
 
142
                <key>show_gauge</key>
 
143
                <value>True</value>
 
144
                <type>enum</type>
 
145
                <option>
 
146
                        <name>Show</name>
 
147
                        <key>True</key>
 
148
                </option>
 
149
                <option>
 
150
                        <name>Hide</name>
 
151
                        <key>False</key>
 
152
                </option>
 
153
        </param>
 
154
        <param>
 
155
                <name>Grid Position</name>
 
156
                <key>grid_pos</key>
 
157
                <value></value>
 
158
                <type>grid_pos</type>
 
159
        </param>
 
160
        <param>
 
161
                <name>Notebook</name>
 
162
                <key>notebook</key>
 
163
                <value></value>
 
164
                <type>notebook</type>
 
165
        </param>
 
166
        <sink>
 
167
                <name>in</name>
 
168
                <type>$type</type>
 
169
        </sink>
 
170
        <doc>
 
171
Set Average Alpha to 0 for automatic setting.
 
172
 
 
173
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
 
174
 
 
175
Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
 
176
 
 
177
Incoming numbers are multiplied by the factor, and then added-to by the reference level.
 
178
        </doc>
 
179
</block>