IChar To Complex: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Created page with "Category:Block Docs Category:Stub Docs This is the template for the "Page-per-block Docs". This first section should describe what the block...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Block Docs]]
[[Category:Block Docs]]
[[Category:Stub Docs]]
Convert stream of interleaved chars to a stream of complex.
This is the template for the [[:Category:Block_Docs|"Page-per-block Docs"]].  This first section should describe what the block does and how to use it, using however many paragraphs necessary.  Note that the title of the wiki page should match the block's name in GRC, i.e. the one defined in the block's .grc file.  Look at the [[FFT]] Block for a good example.


As this is a basic template, it's also in the [[:Category:Stub_Docs|"Stub Docs category"]]. Please improve it.
See [[Complex To IChar]] for the creation of such a stream.


== Parameters ==
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>


; Param 1 (''R'')
; Vector input
: Description of parameter, provide any tips or recommended values. Note that the name of the parameter above should match the param's label that shows up in grc (e.g. Sample Rate).
: Yes or No. Use vector input instead of interleaved samples for the I and Q channels. If vector input is chosen, then the input must be of type short. (The input does not change color but the output of the block at input must be in short.)


; Param 2
== Example Flowgraph ==
: blah blah blah


== Example Flowgraph ==
The following flowgraph takes an input from a vector source (short type) and converts it into complex data.
 
[[File:IcharTocomplex.PNG]]
 
It has the following output.


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.
[[File:IcharTocomplexOutput.PNG]]


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


; C++ fileshttps://wiki.gnuradio.org/index.php/SISO
; C++ files
 
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/interleaved_char_to_complex_impl.h interleaved_char_to_complex_impl.h]
: [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/interleaved_char_to_complex_impl.cc interleaved_char_to_complex_impl.cc]


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


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

Latest revision as of 10:47, 11 February 2022

Convert stream of interleaved chars to a stream of complex.

See Complex To IChar for the creation of such a stream.

Parameters

Vector input
Yes or No. Use vector input instead of interleaved samples for the I and Q channels. If vector input is chosen, then the input must be of type short. (The input does not change color but the output of the block at input must be in short.)

Example Flowgraph

The following flowgraph takes an input from a vector source (short type) and converts it into complex data.

IcharTocomplex.PNG

It has the following output.

IcharTocomplexOutput.PNG

Source Files

C++ files
interleaved_char_to_complex_impl.h
Header files
interleaved_char_to_complex_impl.cc
Public header files
interleaved_char_to_complex.h
Block definition
blocks_interleaved_char_to_complex.block.yml