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

« back to all changes in this revision

Viewing changes to grc/blocks/wxgui_constellationsink2.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
##Constellation Sink
 
5
###################################################
 
6
 -->
 
7
<block>
 
8
        <name>Constellation Sink</name>
 
9
        <key>wxgui_constellationsink2</key>
 
10
        <import>from gnuradio.wxgui import constsink_gl</import>
 
11
        <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
 
12
constsink_gl.const_sink_c(
 
13
        $(parent).GetWin(),
 
14
        title=$title,
 
15
        sample_rate=$samp_rate,
 
16
        frame_rate=$frame_rate,
 
17
        const_size=$const_size,
 
18
        M=$M,
 
19
        theta=$theta,
 
20
        alpha=$alpha,
 
21
        fmax=$fmax,
 
22
        mu=$mu,
 
23
        gain_mu=$gain_mu,
 
24
        symbol_rate=$symbol_rate,
 
25
        omega_limit=$omega_limit,
 
26
)
 
27
#if not $grid_pos()
 
28
$(parent).Add(self.$(id).win)
 
29
#else
 
30
$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
 
31
#end if</make>
 
32
        <callback>set_sample_rate($samp_rate)</callback>
 
33
        <param>
 
34
                <name>Title</name>
 
35
                <key>title</key>
 
36
                <value>Constellation Plot</value>
 
37
                <type>string</type>
 
38
        </param>
 
39
        <param>
 
40
                <name>Sample Rate</name>
 
41
                <key>samp_rate</key>
 
42
                <value>samp_rate</value>
 
43
                <type>real</type>
 
44
        </param>
 
45
        <param>
 
46
                <name>Frame Rate</name>
 
47
                <key>frame_rate</key>
 
48
                <value>5</value>
 
49
                <type>real</type>
 
50
        </param>
 
51
        <param>
 
52
                <name>Constellation Size</name>
 
53
                <key>const_size</key>
 
54
                <value>2048</value>
 
55
                <type>real</type>
 
56
        </param>
 
57
        <param>
 
58
                <name>M</name>
 
59
                <key>M</key>
 
60
                <value>4</value>
 
61
                <type>int</type>
 
62
        </param>
 
63
        <param>
 
64
                <name>Theta</name>
 
65
                <key>theta</key>
 
66
                <value>0</value>
 
67
                <type>real</type>
 
68
        </param>
 
69
        <param>
 
70
                <name>Alpha</name>
 
71
                <key>alpha</key>
 
72
                <value>0.005</value>
 
73
                <type>real</type>
 
74
        </param>
 
75
        <param>
 
76
                <name>Max Freq</name>
 
77
                <key>fmax</key>
 
78
                <value>0.06</value>
 
79
                <type>real</type>
 
80
        </param>
 
81
        <param>
 
82
                <name>Mu</name>
 
83
                <key>mu</key>
 
84
                <value>0.5</value>
 
85
                <type>real</type>
 
86
        </param>
 
87
        <param>
 
88
                <name>Gain Mu</name>
 
89
                <key>gain_mu</key>
 
90
                <value>0.005</value>
 
91
                <type>real</type>
 
92
        </param>
 
93
        <param>
 
94
                <name>Symbol Rate</name>
 
95
                <key>symbol_rate</key>
 
96
                <value>samp_rate/4.</value>
 
97
                <type>real</type>
 
98
        </param>
 
99
        <param>
 
100
                <name>Omega Limit</name>
 
101
                <key>omega_limit</key>
 
102
                <value>0.005</value>
 
103
                <type>real</type>
 
104
        </param>
 
105
        <param>
 
106
                <name>Grid Position</name>
 
107
                <key>grid_pos</key>
 
108
                <value></value>
 
109
                <type>grid_pos</type>
 
110
        </param>
 
111
        <param>
 
112
                <name>Notebook</name>
 
113
                <key>notebook</key>
 
114
                <value></value>
 
115
                <type>notebook</type>
 
116
        </param>
 
117
        <sink>
 
118
                <name>in</name>
 
119
                <type>complex</type>
 
120
        </sink>
 
121
        <doc>
 
122
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
 
123
 
 
124
Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
 
125
        </doc>
 
126
</block>