summaryrefslogtreecommitdiff
path: root/grc/data/platforms/python
diff options
context:
space:
mode:
Diffstat (limited to 'grc/data/platforms/python')
-rw-r--r--grc/data/platforms/python/blocks/gr_divide_xx.xml11
-rw-r--r--grc/data/platforms/python/blocks/gr_float_to_complex.xml12
-rw-r--r--grc/data/platforms/python/blocks/gr_sub_xx.xml11
3 files changed, 31 insertions, 3 deletions
diff --git a/grc/data/platforms/python/blocks/gr_divide_xx.xml b/grc/data/platforms/python/blocks/gr_divide_xx.xml
index 7f8752919..04667bc2a 100644
--- a/grc/data/platforms/python/blocks/gr_divide_xx.xml
+++ b/grc/data/platforms/python/blocks/gr_divide_xx.xml
@@ -9,7 +9,7 @@
<name>Divide</name>
<key>gr_divide_xx</key>
<import>from gnuradio import gr</import>
- <make>gr.divide_$(type.fcn)()</make>
+ <make>gr.divide_$(type.fcn)($vlen)</make>
<param>
<name>IO Type</name>
<key>type</key>
@@ -36,19 +36,28 @@
</option>
</param>
<param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <param>
<name>Num Inputs</name>
<key>num_inputs</key>
<value>2</value>
<type>int</type>
</param>
+ <check>$vlen &gt; 0</check>
<check>$num_inputs &gt;= 2</check>
<sink>
<name>in</name>
<type>$type</type>
+ <vlen>$vlen</vlen>
<nports>$num_inputs</nports>
</sink>
<source>
<name>out</name>
<type>$type</type>
+ <vlen>$vlen</vlen>
</source>
</block>
diff --git a/grc/data/platforms/python/blocks/gr_float_to_complex.xml b/grc/data/platforms/python/blocks/gr_float_to_complex.xml
index e8734fc6a..a1644efd7 100644
--- a/grc/data/platforms/python/blocks/gr_float_to_complex.xml
+++ b/grc/data/platforms/python/blocks/gr_float_to_complex.xml
@@ -9,18 +9,28 @@
<name>Float To Complex</name>
<key>gr_float_to_complex</key>
<import>from gnuradio import gr</import>
- <make>gr.float_to_complex()</make>
+ <make>gr.float_to_complex($vlen)</make>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <check>$vlen &gt; 0</check>
<sink>
<name>in</name>
<type>float</type>
+ <vlen>$vlen</vlen>
</sink>
<sink>
<name>in</name>
<type>float</type>
+ <vlen>$vlen</vlen>
<optional>1</optional>
</sink>
<source>
<name>out</name>
<type>complex</type>
+ <vlen>$vlen</vlen>
</source>
</block>
diff --git a/grc/data/platforms/python/blocks/gr_sub_xx.xml b/grc/data/platforms/python/blocks/gr_sub_xx.xml
index 488e6c364..f1f4797e0 100644
--- a/grc/data/platforms/python/blocks/gr_sub_xx.xml
+++ b/grc/data/platforms/python/blocks/gr_sub_xx.xml
@@ -9,7 +9,7 @@
<name>Subtract</name>
<key>gr_sub_xx</key>
<import>from gnuradio import gr</import>
- <make>gr.sub_$(type.fcn)()</make>
+ <make>gr.sub_$(type.fcn)($vlen)</make>
<param>
<name>IO Type</name>
<key>type</key>
@@ -36,19 +36,28 @@
</option>
</param>
<param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <param>
<name>Num Inputs</name>
<key>num_inputs</key>
<value>2</value>
<type>int</type>
</param>
+ <check>$vlen &gt; 0</check>
<check>$num_inputs &gt;= 2</check>
<sink>
<name>in</name>
<type>$type</type>
+ <vlen>$vlen</vlen>
<nports>$num_inputs</nports>
</sink>
<source>
<name>out</name>
<type>$type</type>
+ <vlen>$vlen</vlen>
</source>
</block>