summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorJohnathan Corgan2012-06-23 08:12:30 -0700
committerJohnathan Corgan2012-06-23 08:26:31 -0700
commit6eb1447df04883af78ed78eb8449378e67d67bf6 (patch)
treeb4db3c2d85a27d1cfe7704a4ce3cfa5248b6066b /gr-blocks/grc
parentc16e6eba638ebe3bdf5ee4770ce409481c8e1c7a (diff)
downloadgnuradio-6eb1447df04883af78ed78eb8449378e67d67bf6.tar.gz
gnuradio-6eb1447df04883af78ed78eb8449378e67d67bf6.tar.bz2
gnuradio-6eb1447df04883af78ed78eb8449378e67d67bf6.zip
blocks: added gr::blocks::complex_to_float
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_block_tree.xml1
-rw-r--r--gr-blocks/grc/blocks_complex_to_float.xml36
2 files changed, 37 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml
index 523ee1b7c..a1ef71b5c 100644
--- a/gr-blocks/grc/blocks_block_tree.xml
+++ b/gr-blocks/grc/blocks_block_tree.xml
@@ -42,5 +42,6 @@
<block>blocks_char_to_float</block>
<block>blocks_char_to_short</block>
<block>blocks_complex_to_interleaved_short</block>
+ <block>blocks_complex_to_float</block>
</cat>
</cat>
diff --git a/gr-blocks/grc/blocks_complex_to_float.xml b/gr-blocks/grc/blocks_complex_to_float.xml
new file mode 100644
index 000000000..7acf3fccb
--- /dev/null
+++ b/gr-blocks/grc/blocks_complex_to_float.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Complex to Float:
+## one or two output streams
+###################################################
+ -->
+<block>
+ <name>Complex To Float</name>
+ <key>blocks_complex_to_float</key>
+ <import>from gnuradio import blocks</import>
+ <make>blocks.complex_to_float($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>complex</type>
+ <vlen>$vlen</vlen>
+ </sink>
+ <source>
+ <name>re</name>
+ <type>float</type>
+ <vlen>$vlen</vlen>
+ </source>
+ <source>
+ <name>im</name>
+ <type>float</type>
+ <vlen>$vlen</vlen>
+ <optional>1</optional>
+ </source>
+</block>