diff options
author | Johnathan Corgan | 2012-06-23 09:06:19 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-06-23 09:18:27 -0700 |
commit | 48ba99044710dc69c0ebdd3fbe97798622713a9f (patch) | |
tree | 1a329d1a7f4352d1fd973fe1b8023dd48f806318 /gr-blocks/grc | |
parent | ed0dffa3c1a84a4b8f3201969896f61af39b86a3 (diff) | |
download | gnuradio-48ba99044710dc69c0ebdd3fbe97798622713a9f.tar.gz gnuradio-48ba99044710dc69c0ebdd3fbe97798622713a9f.tar.bz2 gnuradio-48ba99044710dc69c0ebdd3fbe97798622713a9f.zip |
blocks: added gr::blocks::complex_to_mag
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_block_tree.xml | 1 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_complex_to_mag.xml | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml index 2739919d2..0f68ee0d1 100644 --- a/gr-blocks/grc/blocks_block_tree.xml +++ b/gr-blocks/grc/blocks_block_tree.xml @@ -45,5 +45,6 @@ <block>blocks_complex_to_float</block> <block>blocks_complex_to_imag</block> <block>blocks_complex_to_real</block> + <block>blocks_complex_to_mag</block> </cat> </cat> diff --git a/gr-blocks/grc/blocks_complex_to_mag.xml b/gr-blocks/grc/blocks_complex_to_mag.xml new file mode 100644 index 000000000..2aa4faee7 --- /dev/null +++ b/gr-blocks/grc/blocks_complex_to_mag.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Complex to Magnitude +################################################### + --> +<block> + <name>Complex to Mag</name> + <key>blocks_complex_to_mag</key> + <import>from gnuradio import blocks</import> + <make>blocks.complex_to_mag($vlen)</make> + <param> + <name>Vec Length</name> + <key>vlen</key> + <value>1</value> + <type>int</type> + </param> + <check>$vlen > 0</check> + <sink> + <name>in</name> + <type>complex</type> + <vlen>$vlen</vlen> + </sink> + <source> + <name>out</name> + <type>float</type> + <vlen>$vlen</vlen> + </source> +</block> |