Add Const: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
(revised flowgraph)
Line 10: Line 10:
== Example Flowgraph ==
== Example Flowgraph ==


This flowgraph shows the Add Const block adding a -1.0 to the stream.
This flowgraph shows the Add Const and Multiply blocks to create an amplitude modulated signal.


[[File:Complex_to_Mag.png|800px]]
[[File:Multiply_block_fg.png|800px]]
 
[[File:Multiply_Block_out.png|800px]]


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

Revision as of 00:26, 30 October 2019

Adds a constant value to each item that passes though. 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.

Multiply block fg.png

Multiply Block out.png

Source Files

C++ files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Header files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Public header files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Block definition
[1]