forked from gnuradio/gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow_controls.grc
334 lines (331 loc) · 6.63 KB
/
show_controls.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
options:
parameters:
author: ''
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: show_controls
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: Control Demo
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled
blocks:
- name: angle
id: variable_qtgui_dial_control
parameters:
comment: ''
gui_hint: 1,0,1,1
label: Angle
maximum: '360'
minimum: '0'
minsize: '100'
outputmsgname: value
relBackgroundColor: default
scaleFactor: '1'
showvalue: 'True'
type: int
value: '25'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [128, 220.0]
rotation: 0
state: true
- name: freq
id: qtgui_msgdigitalnumbercontrol
parameters:
ThousandsSeparator: ','
affinity: ''
alias: ''
comment: ''
gui_hint: 0,0,1,2
lbl: Frequency
maxFreqHz: 1700e6
maxoutbuf: '0'
minFreqHz: 30e6
minoutbuf: '0'
outputmsgname: freq
readOnly: 'False'
relBackgroundColor: black
relFontColor: white
value: 139.712e6
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [224, 76.0]
rotation: 0
state: true
- name: gain
id: variable_qtgui_dial_control
parameters:
comment: ''
gui_hint: 1,3,1,1
label: Gain
maximum: '100'
minimum: '0'
minsize: '100'
outputmsgname: value
relBackgroundColor: aqua
scaleFactor: '1'
showvalue: 'False'
type: int
value: '6'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [712, 204.0]
rotation: 0
state: true
- name: ledstatus
id: variable_qtgui_toggle_button_msg
parameters:
comment: ''
gui_hint: 0,2,1,1
initPressed: 'True'
label: LED
outputmsgname: value
pressBackgroundColor: green
pressFontColor: default
pressed: 'True'
relBackgroundColor: red
relFontColor: default
released: 'False'
type: bool
value: 'True'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [552, 12.0]
rotation: 0
state: true
- name: qtgui_levelgauge_0
id: qtgui_levelgauge
parameters:
affinity: ''
alias: ''
backgroundColor: default
barColor: default
comment: ''
fontColor: default
gui_hint: 1,4,1,1
isVertical: 'True'
label: Gain
maximum: '100'
minimum: '0'
msize: '300'
position: '2'
scaleFactor: '1'
showValue: 'False'
type: int
value: gain
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [936, 204.0]
rotation: 0
state: enabled
- name: qtgui_levelgauge_0_0
id: qtgui_levelgauge
parameters:
affinity: ''
alias: ''
backgroundColor: yellow
barColor: red
comment: ''
fontColor: default
gui_hint: 2,4,1,1
isVertical: 'False'
label: Gain
maximum: '100'
minimum: '0'
msize: '300'
position: '2'
scaleFactor: '1'
showValue: 'True'
type: int
value: gain
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [928, 340.0]
rotation: 0
state: enabled
- name: samp_rate
id: variable
parameters:
comment: ''
value: '32000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [184, 12]
rotation: 0
state: enabled
- name: blocks_null_sink_0
id: blocks_null_sink
parameters:
affinity: ''
alias: ''
bus_structure_sink: '[[0,],]'
comment: ''
num_inputs: '1'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [696, 448.0]
rotation: 0
state: true
- name: blocks_null_source_0
id: blocks_null_source
parameters:
affinity: ''
alias: ''
bus_structure_source: '[[0,],]'
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_outputs: '1'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [312, 448.0]
rotation: 0
state: true
- name: blocks_throttle_0
id: blocks_throttle
parameters:
affinity: ''
alias: ''
comment: ''
ignoretag: 'True'
maxoutbuf: '0'
minoutbuf: '0'
samples_per_second: samp_rate
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [520, 444.0]
rotation: 0
state: true
- name: import_0
id: import
parameters:
alias: ''
comment: ''
imports: import subprocess
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [290, 12]
rotation: 0
state: true
- name: qtgui_compass_0
id: qtgui_compass
parameters:
affinity: ''
alias: ''
backgroundColor: white
comment: ''
fullNeedle: '1'
gui_hint: 1,1,2,2
min_size: '100'
name: Azimuth
needleBodyColor: black
needleTipColor: red
position: '1'
scaleColor: black
setDebug: 'False'
update_time: '0.10'
usemsg: 'True'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [336, 244.0]
rotation: 0
state: true
- name: qtgui_graphicitem_0
id: qtgui_graphicitem
parameters:
affinity: ''
alias: ''
comment: ''
file: subprocess.getoutput("gnuradio-config-info --prefix") + "/share/gnuradio/examples/qt-gui/earth.jpg"
fixedsize: 'False'
gui_hint: 0,4,1,1
height: '0'
scaleImage: 'False'
width: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [975, 36]
rotation: 0
state: true
- name: qtgui_ledindicator_0
id: qtgui_ledindicator
parameters:
affinity: ''
alias: ''
cellalignment: '1'
comment: ''
gui_hint: 0,3,1,1
label: AOS
maxSize: '40'
offColor: red
onColor: green
position: '1'
state: ledstatus
verticalalignment: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [768, 36.0]
rotation: 0
state: true
connections:
- [angle, value, qtgui_compass_0, angle]
- [blocks_null_source_0, '0', blocks_throttle_0, '0']
- [blocks_throttle_0, '0', blocks_null_sink_0, '0']
metadata:
file_format: 1