blob: cf3f292806eabc7c2da1591bf90322ebd466c88b (
plain)
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
|
<?xml version="1.0"?>
<!--
###################################################
##Constellation Sink
###################################################
-->
<block>
<name>Constellation Sink</name>
<key>wxgui_constellationsink2</key>
<import>from gnuradio.wxgui import scopesink2</import>
<make>scopesink2.constellation_sink(
self.GetWin(),
title=$title,
sample_rate=$samp_rate,
frame_decim=$frame_decim,
)
self.$(id).win.$(marker)()
#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>Title</name>
<key>title</key>
<value>Constellation 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>Frame Decimation</name>
<key>frame_decim</key>
<value>15</value>
<type>int</type>
</param>
<param>
<name>Marker</name>
<key>marker</key>
<value>set_format_plus</value>
<type>enum</type>
<option>
<name>Line</name>
<key>set_format_line</key>
</option>
<option>
<name>Dot</name>
<key>set_format_dot</key>
</option>
<option>
<name>Plus</name>
<key>set_format_plus</key>
</option>
</param>
<param>
<name>Grid Position</name>
<key>grid_pos</key>
<value></value>
<type>grid_pos</type>
</param>
<sink>
<name>in</name>
<type>complex</type>
</sink>
<doc>
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
</doc>
</block>
|