240273e42df11d54d4e975a1c5a7191ed171dbb5
[debian/gnuradio] / grc / data / grc_gnuradio / blocks / gr_vector_source_x.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Vector Source
5 ###################################################
6  -->
7 <block>
8         <name>Vector Source</name>
9         <key>gr_vector_source_x</key>
10         <import>from gnuradio import gr</import>
11         <make>gr.vector_source_$(type.fcn)($vector, $repeat)</make>
12         <param>
13                 <name>Output Type</name>
14                 <key>type</key>
15                 <type>enum</type>
16                 <option>
17                         <name>Complex</name>
18                         <key>complex</key>
19                         <opt>fcn:c</opt>
20                         <opt>vec_type:complex_vector</opt>
21                 </option>
22                 <option>
23                         <name>Float</name>
24                         <key>float</key>
25                         <opt>fcn:f</opt>
26                         <opt>vec_type:real_vector</opt>
27                 </option>
28                 <option>
29                         <name>Int</name>
30                         <key>int</key>
31                         <opt>fcn:i</opt>
32                         <opt>vec_type:int_vector</opt>
33                 </option>
34                 <option>
35                         <name>Short</name>
36                         <key>short</key>
37                         <opt>fcn:s</opt>
38                         <opt>vec_type:int_vector</opt>
39                 </option>
40                 <option>
41                         <name>Byte</name>
42                         <key>byte</key>
43                         <opt>fcn:b</opt>
44                         <opt>vec_type:int_vector</opt>
45                 </option>
46         </param>
47         <param>
48                 <name>Vector</name>
49                 <key>vector</key>
50                 <value>0, 0, 0</value>
51                 <type>$type.vec_type</type>
52         </param>
53         <param>
54                 <name>Repeat</name>
55                 <key>repeat</key>
56                 <value>True</value>
57                 <type>enum</type>
58                 <option>
59                         <name>Yes</name>
60                         <key>True</key>
61                 </option>
62                 <option>
63                         <name>No</name>
64                         <key>False</key>
65                 </option>
66         </param>
67         <source>
68                 <name>out</name>
69                 <type>$type</type>
70         </source>
71 </block>