Add Const: Difference between revisions
Jump to navigation
Jump to search
(revised flowgraph) |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
This block adds a constant value to each item that passes through it. | |||
output[m] = input[m] + constant vector | |||
== Parameters == | == Parameters == | ||
Line 19: | Line 20: | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_bb_impl.cc add_const_bb_impl.cc] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_cc_impl.cc add_const_cc_impl.cc] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ff_impl.cc add_const_ff_impl.cc] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ii_impl.cc add_const_ii_impl.cc] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ss_impl.cc add_const_ss_impl.cc] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_v_impl.cc add_const_v_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_bb_impl.h add_const_bb_impl.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_cc_impl.h add_const_cc_impl.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ff_impl.h add_const_ff_impl.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ii_impl.h add_const_ii_impl.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_ss_impl.h add_const_ss_impl.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_const_v_impl.h add_const_v_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_bb.h add_const_bb.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_cc.h add_const_cc.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_ff.h add_const_ff.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_ii.h add_const_ii.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_ss.h add_const_ss.h] | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_const_v.h add_const_v.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_add_const_vxx.block.yml blocks_add_const_vxx.block.yml] |
Revision as of 09:27, 25 August 2022
This block adds a constant value to each item that passes through it. output[m] = input[m] + constant vector
Parameters
(R): Run-time adjustable
- Constant (R)
- The entered value must be of the same type as the input / output ports (i.e. complex, float, etc.).
Example Flowgraph
This flowgraph shows the Add Const and Multiply blocks to create an amplitude modulated signal.
Source Files
- C++ files
- add_const_bb_impl.cc
- add_const_cc_impl.cc
- add_const_ff_impl.cc
- add_const_ii_impl.cc
- add_const_ss_impl.cc
- add_const_v_impl.cc
- Header files
- add_const_bb_impl.h
- add_const_cc_impl.h
- add_const_ff_impl.h
- add_const_ii_impl.h
- add_const_ss_impl.h
- add_const_v_impl.h
- Public header files
- add_const_bb.h
- add_const_cc.h
- add_const_ff.h
- add_const_ii.h
- add_const_ss.h
- add_const_v.h
- Block definition
- blocks_add_const_vxx.block.yml