diff options
author | Johnathan Corgan | 2012-06-23 08:44:47 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-06-23 08:44:47 -0700 |
commit | ed0dffa3c1a84a4b8f3201969896f61af39b86a3 (patch) | |
tree | 573cc257e81bf3c9353b5260c83cceaba1cebe73 /gr-blocks/grc | |
parent | 11a702b94a43cac127c146654f5fc10415f2bb6e (diff) | |
download | gnuradio-ed0dffa3c1a84a4b8f3201969896f61af39b86a3.tar.gz gnuradio-ed0dffa3c1a84a4b8f3201969896f61af39b86a3.tar.bz2 gnuradio-ed0dffa3c1a84a4b8f3201969896f61af39b86a3.zip |
blocks: added gr::blocks::complex_to_imag
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_imag.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 4a520828b..2739919d2 100644 --- a/gr-blocks/grc/blocks_block_tree.xml +++ b/gr-blocks/grc/blocks_block_tree.xml @@ -43,6 +43,7 @@ <block>blocks_char_to_short</block> <block>blocks_complex_to_interleaved_short</block> <block>blocks_complex_to_float</block> + <block>blocks_complex_to_imag</block> <block>blocks_complex_to_real</block> </cat> </cat> diff --git a/gr-blocks/grc/blocks_complex_to_imag.xml b/gr-blocks/grc/blocks_complex_to_imag.xml new file mode 100644 index 000000000..cb2c2019f --- /dev/null +++ b/gr-blocks/grc/blocks_complex_to_imag.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Complex to Imaginary +################################################### + --> +<block> + <name>Complex to Imag</name> + <key>blocks_complex_to_imag</key> + <import>from gnuradio import blocks</import> + <make>blocks.complex_to_imag($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> |