diff options
author | jwl <willcode4@gmail.com> | 2014-09-07 20:03:56 -0400 |
---|---|---|
committer | jwl <willcode4@gmail.com> | 2014-09-07 20:03:56 -0400 |
commit | c687f249a6208450e295a6dd1671e57747a84cbe (patch) | |
tree | 1b45fa676151c1f51af291317e025a4eb6a7c411 /gr-blocks/grc | |
parent | 01deede32858ef9e2fe4cc937f3245b5b0e6d7c9 (diff) |
Add vector support to abs block. Remove unused num_inputs from xml.
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_abs_xx.xml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gr-blocks/grc/blocks_abs_xx.xml b/gr-blocks/grc/blocks_abs_xx.xml index 65ef97ddff..77298716c8 100644 --- a/gr-blocks/grc/blocks_abs_xx.xml +++ b/gr-blocks/grc/blocks_abs_xx.xml @@ -8,7 +8,13 @@ <name>Abs</name> <key>blocks_abs_xx</key> <import>from gnuradio import blocks</import> - <make>blocks.abs_$(type.fcn)()</make> + <make>blocks.abs_$(type.fcn)($vlen)</make> + <param> + <name>Vec Length</name> + <key>vlen</key> + <value>1</value> + <type>int</type> + </param> <param> <name>IO Type</name> <key>type</key> @@ -29,21 +35,14 @@ <opt>fcn:ff</opt> </option> </param> - <param> - <name>Num Inputs</name> - <key>num_inputs</key> - <value>1</value> - <type>int</type> - </param> - <check>$num_inputs >= 1</check> <sink> <name>in</name> <type>$type</type> - <nports>$num_inputs</nports> + <vlen>$vlen</vlen> </sink> <source> <name>out</name> <type>$type</type> - <nports>$num_inputs</nports> + <vlen>$vlen</vlen> </source> </block> |