diff options
Diffstat (limited to 'grc/blocks/gr_float_to_short.xml')
-rw-r--r-- | grc/blocks/gr_float_to_short.xml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/grc/blocks/gr_float_to_short.xml b/grc/blocks/gr_float_to_short.xml index cb2bcd4be..4f76b8f58 100644 --- a/grc/blocks/gr_float_to_short.xml +++ b/grc/blocks/gr_float_to_short.xml @@ -8,13 +8,28 @@ <name>Float To Short</name> <key>gr_float_to_short</key> <import>from gnuradio import gr</import> - <make>gr.float_to_short()</make> + <make>gr.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> |