Multiply Const: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(add Example Flowgraph)
No edit summary
Line 23: Line 23:


; C++ files
; C++ files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/multiply_const_impl.cc If single sample input]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/multiply_const_v_impl.cc If vector input]


; Header files
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/multiply_const_impl.h If single sample input]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/multiply_const_v_impl.h If vector input]


; Public header files
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/multiply_const.h If single sample input]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/multiply_const_v.h If vector input]


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

Revision as of 16:42, 29 October 2019

Multiplies input stream by a constant.

output = input * constant scalar/vector (element-wise if vector)

See Fast Multiply Const for a more performant version of this block.

Parameters

(R): Run-time adjustable

Constant (R)
Constant to multiply the input stream by

Example Flowgraph

This flowgraph uses three Multiply type blocks. The top Multiply Const Block and middle Multiply Block are driven by the GUI Chooser to act as a Transmit / Receive switch. The bottom Multiply Const Block is a Volume control, the 'constant' being the 'volume' parameter from the QT GUI Range block.

Note: The lower section is a working 2 meter NBFM receiver.

Selector demo.png

Source Files

C++ files
If single sample input
If vector input
Header files
If single sample input
If vector input
Public header files
If single sample input
If vector input
Block definition
[1]