summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_float_to_short.xml
diff options
context:
space:
mode:
authorJohnathan Corgan2012-06-26 06:47:26 -0700
committerJohnathan Corgan2012-06-26 06:47:26 -0700
commit86f15ba3488cde9eededa2af5af8dcadc01e9e47 (patch)
treec093a0e85025f833ca769fde053e85aa941bd739 /gr-blocks/grc/blocks_float_to_short.xml
parent31c61c16e2073f0c3f54a8d0523d8c4f10ca5dd2 (diff)
downloadgnuradio-86f15ba3488cde9eededa2af5af8dcadc01e9e47.tar.gz
gnuradio-86f15ba3488cde9eededa2af5af8dcadc01e9e47.tar.bz2
gnuradio-86f15ba3488cde9eededa2af5af8dcadc01e9e47.zip
blocks: added gr::blocks::float_to_short
Diffstat (limited to 'gr-blocks/grc/blocks_float_to_short.xml')
-rw-r--r--gr-blocks/grc/blocks_float_to_short.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_float_to_short.xml b/gr-blocks/grc/blocks_float_to_short.xml
new file mode 100644
index 000000000..986e68ec4
--- /dev/null
+++ b/gr-blocks/grc/blocks_float_to_short.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Float to Short:
+###################################################
+ -->
+<block>
+ <name>Float To Short</name>
+ <key>blocks_float_to_short</key>
+ <import>from gnuradio import blocks</import>
+ <make>blocks.float_to_short($vlen, $scale)</make>
+ <callback>set_scale($scale)</callback>
+ <param>
+ <name>Vec Length</name>
+ <key>vlen</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Scale</name>
+ <key>scale</key>
+ <value>1</value>
+ <type>real</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>float</type>
+ <vlen>$vlen</vlen>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>short</type>
+ <vlen>$vlen</vlen>
+ </source>
+</block>