diff options
author | Johnathan Corgan | 2012-06-26 06:47:26 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-06-26 06:47:26 -0700 |
commit | 86f15ba3488cde9eededa2af5af8dcadc01e9e47 (patch) | |
tree | c093a0e85025f833ca769fde053e85aa941bd739 /gr-blocks/grc/blocks_float_to_short.xml | |
parent | 31c61c16e2073f0c3f54a8d0523d8c4f10ca5dd2 (diff) | |
download | gnuradio-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.xml | 35 |
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> |