some fix
[debian/gnuradio] / grc / data / platforms / python / blocks / variable_sink.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Variable Sink: Custom blks2 block
5 ###################################################
6  -->
7 <block>
8         <name>Variable Sink</name>
9         <key>variable_sink</key>
10         <import>from grc_gnuradio import blks2 as grc_blks2</import>
11         <make>grc_blks2.queue_sink_$(type.fcn)($vlen)
12 grc_blks2.queue_sink_thread(self.$id, self.set_$(variable))</make>
13         <param>
14                 <name>Type</name>
15                 <key>type</key>
16                 <type>enum</type>
17                 <option>
18                         <name>Complex</name>
19                         <key>complex</key>
20                         <opt>fcn:c</opt>
21                 </option>
22                 <option>
23                         <name>Float</name>
24                         <key>float</key>
25                         <opt>fcn:f</opt>
26                 </option>
27                 <option>
28                         <name>Int</name>
29                         <key>int</key>
30                         <opt>fcn:i</opt>
31                 </option>
32                 <option>
33                         <name>Short</name>
34                         <key>short</key>
35                         <opt>fcn:s</opt>
36                 </option>
37                 <option>
38                         <name>Byte</name>
39                         <key>byte</key>
40                         <opt>fcn:b</opt>
41                 </option>
42         </param>
43         <param>
44                 <name>Variable</name>
45                 <key>variable</key>
46                 <value></value>
47                 <type>raw</type>
48         </param>
49         <param>
50                 <name>Vec Length</name>
51                 <key>vlen</key>
52                 <value>1</value>
53                 <type>int</type>
54         </param>
55         <check>$vlen &gt; 0</check>
56         <sink>
57                 <name>in</name>
58                 <type>$type</type>
59                 <vlen>$vlen</vlen>
60         </sink>
61         <doc>
62 Read samples from the input stream and write each sample to the variable.
63
64 The variable must be the id of an existing variable block.
65         </doc>
66 </block>