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
|
<?xml version="1.0"?>
<!--
###################################################
##Scope Sink
###################################################
-->
<block>
<name>Scope Sink</name>
<key>wxgui_scopesink2</key>
<import>from gnuradio.wxgui import scopesink2</import>
<import>from gnuradio import gr</import>
<make>scopesink2.$(type.fcn)(
self.GetWin(),
title=$title,
sample_rate=$samp_rate,
v_scale=$v_scale,
t_scale=$t_scale,
ac_couple=$ac_couple,
xy_mode=$xy_mode,
num_inputs=$num_inputs,
)
#set $grid_pos = $grid_pos.eval
#if not grid_pos
self.Add(self.$(id).win)
#else
self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end if</make>
<callback>set_sample_rate($samp_rate)</callback>
<param>
<name>Type</name>
<key>type</key>
<value>complex</value>
<type>enum</type>
<option>
<name>Complex</name>
<key>complex</key>
<opt>fcn:scope_sink_c</opt>
</option>
<option>
<name>Float</name>
<key>float</key>
<opt>fcn:scope_sink_f</opt>
</option>
</param>
<param>
<name>Title</name>
<key>title</key>
<value>Scope Plot</value>
<type>string</type>
</param>
<param>
<name>Sample Rate</name>
<key>samp_rate</key>
<value>samp_rate</value>
<type>real</type>
</param>
<param>
<name>V Scale</name>
<key>v_scale</key>
<value>0</value>
<type>real</type>
</param>
<param>
<name>T Scale</name>
<key>t_scale</key>
<value>0</value>
<type>real</type>
</param>
<param>
<name>AC Couple</name>
<key>ac_couple</key>
<value>False</value>
<type>enum</type>
<hide>#if $ac_couple.eval == 'True' then 'none' else 'part'#</hide>
<option>
<name>Off</name>
<key>False</key>
</option>
<option>
<name>On</name>
<key>True</key>
</option>
</param>
<param>
<name>XY Mode</name>
<key>xy_mode</key>
<value>False</value>
<type>enum</type>
<hide>#if $xy_mode.eval == 'True' then 'none' else 'part'#</hide>
<option>
<name>Off</name>
<key>False</key>
</option>
<option>
<name>On</name>
<key>True</key>
</option>
</param>
<param>
<name>Num Inputs</name>
<key>num_inputs</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Grid Position</name>
<key>grid_pos</key>
<value></value>
<type>grid_pos</type>
</param>
<check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
<sink>
<name>in</name>
<type>$type</type>
<nports>$num_inputs</nports>
</sink>
<doc>
Set the V Scale to 0 for the scope to auto-scale.
Set the T Scale to 0 for automatic setting.
XY Mode allows the scope to initialize as an XY plotter.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
</doc>
</block>
|