Multiply Const: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (revised wording in Preview and Parameters) |
||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
Multiplies input stream by a constant. | Multiplies the input stream by a scalar or vector constant (element-wise if vector). | ||
output = input * constant | output = input * constant | ||
See [[ | See [[Fast_Multiply_Const]] for a more performant version of this block for '''scalar''' values only. | ||
== Parameters == | == Parameters == | ||
Line 10: | Line 10: | ||
; Constant (''R'') | ; Constant (''R'') | ||
: | : Scalar or vector constant | ||
== Example Flowgraph == | == Example Flowgraph == |
Revision as of 13:16, 30 October 2019
Multiplies the input stream by a scalar or vector constant (element-wise if vector).
output = input * constant
See Fast_Multiply_Const for a more performant version of this block for scalar values only.
Parameters
(R): Run-time adjustable
- Constant (R)
- Scalar or vector constant
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.
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]