Difference between revisions of "Subtract"

From GNU Radio
Jump to: navigation, search
(add Example Flowgraph)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:Block Docs]]
 
[[Category:Block Docs]]
[[Category:Stub Docs]]
 
 
Subtract across all input streams.  output = input_0 - input_1 - ...
 
Subtract across all input streams.  output = input_0 - input_1 - ...
 
As this is a basic template, it's also in the [[:Category:Stub_Docs|"Stub Docs category"]]. Please improve it.
 
  
 
== Parameters ==
 
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
+
None
  
; Param 1 (''R'')
+
== Example Flowgraph ==
: Description of parameter, provide any tips or recommended values.  Note that the name of the parameter above should match the param's label that shows up in grc (e.g. Sample Rate).
 
  
; Param 2
+
This flowgraph illustrates the use of a Subtract Block as a logic inverter for a float value:<br>
: blah blah blah
 
  
== Example Flowgraph ==
+
1.0 - 0.0 = 1.0<br>
 +
1.0 - 1.0 = 0.0
  
Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI.  Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately.  The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.
+
[[File:Subtract_demo.png|800px]]
  
 
== Source Files ==
 
== Source Files ==

Latest revision as of 16:30, 23 October 2019

Subtract across all input streams. output = input_0 - input_1 - ...

Parameters[edit]

None

Example Flowgraph[edit]

This flowgraph illustrates the use of a Subtract Block as a logic inverter for a float value:

1.0 - 0.0 = 1.0
1.0 - 1.0 = 0.0

Subtract demo.png

Source Files[edit]

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
TODO