Editing Head

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 2: Line 2:
 
Copies the first N items to the output then signals done.  Very useful for limiting how many samples get saved to a file when using the [[File Sink]].   
 
Copies the first N items to the output then signals done.  Very useful for limiting how many samples get saved to a file when using the [[File Sink]].   
  
If the flowgraph options are set to "No GUI" and "Run until completion", then as long as there is only one branch in the flowgraph, this block will cause the flowgraph execution to finish when N samples are reached.
+
If the flowgraph options are set to "No GUI" and "Run until completion", then as long as there is only one branch in the flowgraph, this block will cause the flowgraph to finish when N samples are reached.
  
 
When branching, may block others branches: samples are not consumed and fill upstream buffers.
 
When branching, may block others branches: samples are not consumed and fill upstream buffers.
Line 12: Line 12:
  
 
; Vec Length
 
; Vec Length
: Size of the input and output vector
+
: Size of the input and output vector (May not handle anything different from 1)
  
 
== Example Flowgraph ==
 
== Example Flowgraph ==
Line 22: Line 22:
  
 
[https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/head_impl.cc C++ file]
 
[https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/head_impl.cc C++ file]
 
[https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/head_impl.h Header file]
 
 
[https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/head.h Public header file]
 
 
[https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_head.block.yml GRC Block definition]
 

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)