Multiply by Tag Value: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(add example flowgraph)
 
Line 18: Line 18:


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


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


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

Latest revision as of 11:38, 31 January 2022

output = input * complex constant

The complex constant used by this block is found from a tag with the specified name. The tag must contain a float/double or complex PMT value that will be converted into a gr_complex value. All input data is multiplied by this value until a new tag with an update value is found. The block starts with a value of '1.0' for the multiplier constant.

Parameters

Tag name
Tag's key that it will use to get the multiplicative constant.

Example Flowgraph

This flowgraph can be found at [1]

Packet rx fg.png

Source Files

C++ files
multiply_by_tag_value_cc_impl.cc
Header files
multiply_by_tag_value_cc_impl.h
Public header files
multiply_by_tag_value_cc.h
Block definition
blocks_multiply_by_tag_value_cc.block.yml