<?xml version="1.0"?> <!-- Copyright 2014 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GNU Radio Companion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA --> <block> <name>testname</name> <key>block_key</key> <make>blocks.complex_to_mag_squared($(vlen))</make> <param> <name>Vec Length</name> <key>vlen</key> <value>1</value> <type>int</type> <tab>test</tab> </param> <param> <name>Vec Length</name> <key>out_type</key> <value>complex</value> <type>string</type> </param> <param> <name>Alpha</name> <key>a</key> <value>0</value> <type>($out_type)</type> </param> <check>$vlen > 0</check> <sink> <name>in</name> <type>complex</type> <vlen>2 * $vlen</vlen> </sink> <sink> <name>in2</name> <type>message</type> </sink> <source> <name>out</name> <type>$out_type</type> <vlen>$vlen</vlen> </source> </block>