Editing Selector

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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 18: Line 17:
  
 
; 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 e.g. a [[QT GUI Chooser]]
+
: Used to choose which input stream gets used.  It is typical for this to be changed in realtime using 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 e.g. 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 a [[QT GUI Chooser]]
  
 
== Example Flowgraph ==
 
== Example Flowgraph ==
  
This example flowgraph is located in the GNU Radio examples under src/gnuradio/gr-blocks/examples/selector.grc
+
Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUICurrently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunatelyThe 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:Selector_example_flowgraph.png]]
 
 
 
In this example, there are three input signals, which can be directed by the parameters of the selector block to one of two of the output ports.  In the case where the input is set to 0 and the output is set to 0, we get the cosine signal passing from input 0 to Output 0In this case Output 1 produces no samples.
 
 
 
 
 
[[File:Selector_output_1.png]]
 
 
 
If we change the output index to 1, and the input index to 1, we see the triangle wave produced at output 1Output 0 in this case is producing no output samples, but the QT GUI Time sink does not update the display.
 
 
 
[[File:Selector_output_2.png]]
 
  
 
== Source Files ==
 
== Source Files ==
  
 
; C++ files
 
; C++ files
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/selector_impl.cc]
+
: [https://github.com/gnuradio/gnuradio TODO]
  
 
; Header files
 
; Header files
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/selector_impl.h]
+
: [https://github.com/gnuradio/gnuradio TODO]
  
 
; Public header files
 
; Public header files
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/selector.h]
+
: [https://github.com/gnuradio/gnuradio TODO]
  
 
; Block definition
 
; Block definition
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_selector.block.yml]
+
: [https://github.com/gnuradio/gnuradio TODO]

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)