Char To Float: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 10: Line 10:
== Example Flowgraph ==
== Example Flowgraph ==


Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI. Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately. The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.
This flowgraph compares this block with the [[Char To Short]] which multiplies by 256 by default.  Note that the signal source is generating random numbers between 0 and 128.
 
[[File:Char-to-short-ex.png|500px]]
 
[[File:Char-to-short-ex2.png|500px]]


== Source Files ==
== Source Files ==


; C++ fileshttps://wiki.gnuradio.org/index.php/SISO
; C++ files
 
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/char_to_float_impl.cc char_to_float_impl.cc]
: [https://github.com/gnuradio/gnuradio TODO]


; Header files
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/char_to_float_impl.h char_to_float_impl.h]


; Public header files
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/char_to_float.h char_to_float.h]


; Block definition
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_char_to_float.block.yml blocks_char_to_float.block.yml]

Latest revision as of 10:35, 5 August 2022

Convert stream of chars to a stream of float and applies a scaling factor (set to 1 by default).

Parameters

(R): Run-time adjustable

Scale (R)
Scaling factor applied to input stream.

Example Flowgraph

This flowgraph compares this block with the Char To Short which multiplies by 256 by default. Note that the signal source is generating random numbers between 0 and 128.

Char-to-short-ex.png

Char-to-short-ex2.png

Source Files

C++ files
char_to_float_impl.cc
Header files
char_to_float_impl.h
Public header files
char_to_float.h
Block definition
blocks_char_to_float.block.yml