Integrate: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Block Docs]]
[[Category:Block Docs]]
[[Category:Stub Docs]]
Integrate successive samples and decimate.  Set decimation to 1 in order to not decimate.
Integrate successive samples and decimate.  Set decimation to 1 in order to not decimate.


As this is a basic template, it's also in the [[:Category:Stub_Docs|"Stub Docs category"]]. Please improve it.
[[File:Integrate_block_visual.png]]


== Parameters ==
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
; IO Type
: Supported types are: complex, float, int,and short.


; Param 1 (''R'')
; Decimation
: Description of parameter, provide any tips or recommended valuesNote that the name of the parameter above should match the param's label that shows up in grc (e.g. Sample Rate).
: Number of successive samples to integrate (and thus decimate)Set decimation to 1 in order to not decimate.


; Param 2
; Vector Length
: blah blah blah
: The vector length for the input stream


== 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.
Here is a simple flow graph showing the integrate block with different decimation values:
 
[[File:Integrate_example_flowgraph.png]]
 
 
The expected output is:
 
[[File:Integrate example output.png]]
 
 
The settings page looks like:
 
[[File:Integrate_example_setting.png]]


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


; C++ files
; C++ files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/integrate_impl.cc integrate_impl.cc]


; Header files
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/integrate_impl.h integrate_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/integrate.h integrate.h]


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

Latest revision as of 01:12, 2 August 2023

Integrate successive samples and decimate. Set decimation to 1 in order to not decimate.

Integrate block visual.png

Parameters

IO Type
Supported types are: complex, float, int,and short.
Decimation
Number of successive samples to integrate (and thus decimate). Set decimation to 1 in order to not decimate.
Vector Length
The vector length for the input stream

Example Flowgraph

Here is a simple flow graph showing the integrate block with different decimation values:

Integrate example flowgraph.png


The expected output is:

Integrate example output.png


The settings page looks like:

Integrate example setting.png

Source Files

C++ files
integrate_impl.cc
Header files
integrate_impl.h
Public header files
integrate.h
Block definition
blocks_integrate_xx.block.yml