Constant Source: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Block Docs]]
[[Category:Block Docs]]
[[Category:Stub Docs]]
Produces a constant source of type complex, float, int, or short.
Produces a constant source of type complex, float, int, or short.


Will continuously output this constant value.
Will continuously output this constant value.
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>
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>


; Param 1 (''R'')
; Constant (''R'')
: 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).
: Output value.
 
; Param 2
: blah blah blah


== Example Flowgraph ==
== Example Flowgraph ==
This flowgraph shows the use of a Constant Source and an XOR logic block to invert the input square wave.


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:And_Or_Xor_fg.png|700px]]


== Source Files ==
== Source Files ==
; C++ fileshttps://wiki.gnuradio.org/index.php/SISO
: [https://github.com/gnuradio/gnuradio TODO]
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]

Latest revision as of 23:00, 27 December 2019

Produces a constant source of type complex, float, int, or short.

Will continuously output this constant value.

Parameters

(R): Run-time adjustable

Constant (R)
Output value.

Example Flowgraph

This flowgraph shows the use of a Constant Source and an XOR logic block to invert the input square wave.

And Or Xor fg.png

Source Files