Complex to Mag: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
(Added diagram showing magnitude calculation from IQ sample values.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Block Docs]]
[[Category:Block Docs]]
[[Category:Stub Docs]]
Calculates the magnitude of the complex samples.  Can also work on vectors.
Calculates the magnitude of the complex samples.  Can also work on vectors.


As this is a basic template, it's also in the [[:Category:Stub_Docs|"Stub Docs category"]]. Please improve it.
[[File:Complex-mag.jpg|400px]]


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


; Param 1 (''R'')
== Example Flowgraph ==
: 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).
 
; Param 2
: blah blah blah


== Example Flowgraph ==
This flowgraph shows how to use the Complex to Mag block to demodulate an AM signal. This is a working AM broadcast band receiver.


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:Complex_to_Mag.png|800px]]


== Source Files ==
== Source Files ==
; C++ fileshttps://wiki.gnuradio.org/index.php/SISO
: [https://github.com/gnuradio/gnuradio TODO]
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]

Latest revision as of 17:31, 23 May 2024

Calculates the magnitude of the complex samples. Can also work on vectors.

Complex-mag.jpg

Parameters

None

Example Flowgraph

This flowgraph shows how to use the Complex to Mag block to demodulate an AM signal. This is a working AM broadcast band receiver.

Complex to Mag.png

Source Files