summaryrefslogtreecommitdiff
path: root/grc/blocks/wxgui_constellationsink2.xml
blob: 598b550642d1dbeb321be11f1e317d5c68970aea (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
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
<?xml version="1.0"?>
<!--
###################################################
##Constellation Sink
###################################################
 -->
<block>
	<name>Constellation Sink</name>
	<key>wxgui_constellationsink2</key>
	<import>from gnuradio.wxgui import constsink_gl</import>
	<make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
constsink_gl.const_sink_c(
	$(parent).GetWin(),
	title=$title,
	sample_rate=$samp_rate,
	frame_rate=$frame_rate,
	const_size=$const_size,
	M=$M,
	theta=$theta,
	alpha=$alpha,
	fmax=$fmax,
	mu=$mu,
	gain_mu=$gain_mu,
	symbol_rate=$symbol_rate,
	omega_limit=$omega_limit,
#if $win_size()
	size=$win_size,
#end if
)
#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_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 Rate</name>
		<key>frame_rate</key>
		<value>5</value>
		<type>real</type>
	</param>
	<param>
		<name>Constellation Size</name>
		<key>const_size</key>
		<value>2048</value>
		<type>real</type>
	</param>
	<param>
		<name>M</name>
		<key>M</key>
		<value>4</value>
		<type>int</type>
	</param>
	<param>
		<name>Theta</name>
		<key>theta</key>
		<value>0</value>
		<type>real</type>
	</param>
	<param>
		<name>Alpha</name>
		<key>alpha</key>
		<value>0.005</value>
		<type>real</type>
	</param>
	<param>
		<name>Max Freq</name>
		<key>fmax</key>
		<value>0.06</value>
		<type>real</type>
	</param>
	<param>
		<name>Mu</name>
		<key>mu</key>
		<value>0.5</value>
		<type>real</type>
	</param>
	<param>
		<name>Gain Mu</name>
		<key>gain_mu</key>
		<value>0.005</value>
		<type>real</type>
	</param>
	<param>
		<name>Symbol Rate</name>
		<key>symbol_rate</key>
		<value>samp_rate/4.</value>
		<type>real</type>
	</param>
	<param>
		<name>Omega Limit</name>
		<key>omega_limit</key>
		<value>0.005</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>
Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.

Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.

Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
	</doc>
</block>