Selector: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
; Enabled (''R'')
; Enabled (''R'')
: Whether or not input gets copied to output.
: Whether or not input gets copied to output.
: NOTE: Selector block prior to GR 3.8 does not have Enabled parameter


; Number of Inputs
; Number of Inputs
Line 17: Line 18:


; Input Index (''R'')
; Input Index (''R'')
: Used to choose which input stream gets used.  It is typical for this to be changed in realtime using a [[QT GUI Chooser]]
: Used to choose which input stream gets used.  It is typical for this to be changed in realtime using e.g. a [[QT GUI Chooser]]


; Output Index (''R'')
; Output Index (''R'')
: Used to choose which output stream gets the input copied to it.  It is typical for this to be changed in realtime using a [[QT GUI Chooser]]
: Used to choose which output stream gets the input copied to it.  It is typical for this to be changed in realtime using e.g. a [[QT GUI Chooser]]


== Example Flowgraph ==
== Example Flowgraph ==

Revision as of 16:33, 21 October 2019

Connect the sink at input index to the source at output index. Samples from other input ports are consumed and dumped. Other output ports produce no samples.

output[output_index][i] = input[input_index][i]

Parameters

(R): Run-time adjustable

Enabled (R)
Whether or not input gets copied to output.
NOTE: Selector block prior to GR 3.8 does not have Enabled parameter
Number of Inputs
Number of input streams
Number of Outputs
Number of output streams
Input Index (R)
Used to choose which input stream gets used. It is typical for this to be changed in realtime using e.g. a QT GUI Chooser
Output Index (R)
Used to choose which output stream gets the input copied to it. It is typical for this to be changed in realtime using e.g. a QT GUI Chooser

Example Flowgraph

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.

Source Files

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