Function Probe: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Block Docs Category:Stub Docs This is the template for the "Page-per-block Docs". This first section should describe what the block...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
Periodically probe a function and set its value to this variable. To poll a stream for a level, use this with the [[Probe Signal]] block. | |||
== 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> | ||
; | ; Block ID | ||
: | : ID of another block in this flow graph. An empty Block ID references the flow graph itself. | ||
; | ; Function Name | ||
: | : Name of a class method of the block labeled in Block ID. | ||
; Function Args | |||
: Parameters passed into the function specified under Function Name. For a function with no arguments, leave function args blank. When passing a string for the function arguments, quote the string literal: '"arg"' | |||
:The values will used literally, and generated into the following form: | |||
self.block_id.function_name(function_args) | |||
:or, if the Block ID is empty, | |||
self.function_name(function_args) | |||
; Poll Rate | |||
: in Hz. | |||
; Initial Value (''R'') | |||
: Initial value of function | |||
== Example Flowgraph == | |||
== Source Files == | |||
Revision as of 15:17, 31 July 2019
Periodically probe a function and set its value to this variable. To poll a stream for a level, use this with the Probe Signal block.
Parameters
(R): Run-time adjustable
- Block ID
- ID of another block in this flow graph. An empty Block ID references the flow graph itself.
- Function Name
- Name of a class method of the block labeled in Block ID.
- Function Args
- Parameters passed into the function specified under Function Name. For a function with no arguments, leave function args blank. When passing a string for the function arguments, quote the string literal: '"arg"'
- The values will used literally, and generated into the following form:
self.block_id.function_name(function_args)
- or, if the Block ID is empty,
self.function_name(function_args)
- Poll Rate
- in Hz.
- Initial Value (R)
- Initial value of function