Merging r11186:11273 from grc branch.
[debian/gnuradio] / grc / blocks / wxgui_scopesink2.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Scope Sink
5 ###################################################
6  -->
7 <block>
8         <name>Scope Sink</name>
9         <key>wxgui_scopesink2</key>
10         <import>from gnuradio.wxgui import scopesink2</import>
11         <import>from gnuradio import gr</import>
12         <make>scopesink2.$(type.fcn)(
13         self.GetWin(),
14         title=$title,
15         sample_rate=$samp_rate,
16         v_scale=$v_scale,
17         t_scale=$t_scale,
18         ac_couple=$ac_couple,
19         xy_mode=$xy_mode,
20         num_inputs=$num_inputs,
21 )
22 #set $grid_pos = $grid_pos()
23 #if not grid_pos
24 self.Add(self.$(id).win)
25 #else
26 self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
27 #end if</make>
28         <callback>set_sample_rate($samp_rate)</callback>
29         <param>
30                 <name>Type</name>
31                 <key>type</key>
32                 <value>complex</value>
33                 <type>enum</type>
34                 <option>
35                         <name>Complex</name>
36                         <key>complex</key>
37                         <opt>fcn:scope_sink_c</opt>
38                 </option>
39                 <option>
40                         <name>Float</name>
41                         <key>float</key>
42                         <opt>fcn:scope_sink_f</opt>
43                 </option>
44         </param>
45         <param>
46                 <name>Title</name>
47                 <key>title</key>
48                 <value>Scope Plot</value>
49                 <type>string</type>
50         </param>
51         <param>
52                 <name>Sample Rate</name>
53                 <key>samp_rate</key>
54                 <value>samp_rate</value>
55                 <type>real</type>
56         </param>
57         <param>
58                 <name>V Scale</name>
59                 <key>v_scale</key>
60                 <value>0</value>
61                 <type>real</type>
62         </param>
63         <param>
64                 <name>T Scale</name>
65                 <key>t_scale</key>
66                 <value>0</value>
67                 <type>real</type>
68         </param>
69         <param>
70                 <name>AC Couple</name>
71                 <key>ac_couple</key>
72                 <value>False</value>
73                 <type>enum</type>
74                 <hide>#if $ac_couple() == 'True' then 'none' else 'part'#</hide>
75                 <option>
76                         <name>Off</name>
77                         <key>False</key>
78                 </option>
79                 <option>
80                         <name>On</name>
81                         <key>True</key>
82                 </option>
83         </param>
84         <param>
85                 <name>XY Mode</name>
86                 <key>xy_mode</key>
87                 <value>False</value>
88                 <type>enum</type>
89                 <hide>#if $xy_mode() == 'True' then 'none' else 'part'#</hide>
90                 <option>
91                         <name>Off</name>
92                         <key>False</key>
93                 </option>
94                 <option>
95                         <name>On</name>
96                         <key>True</key>
97                 </option>
98         </param>
99         <param>
100                 <name>Num Inputs</name>
101                 <key>num_inputs</key>
102                 <value>1</value>
103                 <type>int</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         <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
112         <sink>
113                 <name>in</name>
114                 <type>$type</type>
115                 <nports>$num_inputs</nports>
116         </sink>
117         <doc>
118 Set the V Scale to 0 for the scope to auto-scale.
119
120 Set the T Scale to 0 for automatic setting.
121
122 XY Mode allows the scope to initialize as an XY plotter.
123
124 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
125         </doc>
126 </block>