diff options
Diffstat (limited to 'grc/blocks/gr_float_to_char.xml')
-rw-r--r-- | grc/blocks/gr_float_to_char.xml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/grc/blocks/gr_float_to_char.xml b/grc/blocks/gr_float_to_char.xml index 907de7743..1fa500e3c 100644 --- a/grc/blocks/gr_float_to_char.xml +++ b/grc/blocks/gr_float_to_char.xml @@ -8,13 +8,28 @@ <name>Float To Char</name> <key>gr_float_to_char</key> <import>from gnuradio import gr</import> - <make>gr.float_to_char()</make> + <make>gr.float_to_char($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>byte</type> + <vlen>$vlen</vlen> </source> </block> |