Imported Upstream version 3.2.2
[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>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
13 scopesink2.$(type.fcn)(
14         $(parent).GetWin(),
15         title=$title,
16         sample_rate=$samp_rate,
17         v_scale=$v_scale,
18         t_scale=$t_scale,
19         ac_couple=$ac_couple,
20         xy_mode=$xy_mode,
21         num_inputs=$num_inputs,
22 )
23 #if not $grid_pos()
24 $(parent).Add(self.$(id).win)
25 #else
26 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
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         <param>
112                 <name>Notebook</name>
113                 <key>notebook</key>
114                 <value></value>
115                 <type>notebook</type>
116         </param>
117         <check>not $xy_mode or '$type' == 'complex' or $num_inputs != 1</check>
118         <sink>
119                 <name>in</name>
120                 <type>$type</type>
121                 <nports>$num_inputs</nports>
122         </sink>
123         <doc>
124 Set the V Scale to 0 for the scope to auto-scale.
125
126 Set the T Scale to 0 for automatic setting.
127
128 XY Mode allows the scope to initialize as an XY plotter.
129
130 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
131
132 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
133         </doc>
134 </block>