Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / probe_function.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Probe Function
5 ###################################################
6  -->
7 <block>
8         <name>Probe Function</name>
9         <key>probe_function</key>
10         <import>from grc_gnuradio import blks2 as grc_blks2</import>
11         <make>grc_blks2.probe_function(
12         probe_callback=self.$(block_id()).$(function_name()),
13         probe_rate=$probe_rate,
14 )</make>
15         <callback>set_probe_rate($probe_rate)</callback>
16         <param>
17                 <name>Block ID</name>
18                 <key>block_id</key>
19                 <value>my_block_0</value>
20                 <type>string</type>
21         </param>
22         <param>
23                 <name>Function Name</name>
24                 <key>function_name</key>
25                 <value>get_number</value>
26                 <type>string</type>
27         </param>
28         <param>
29                 <name>Probe Rate</name>
30                 <key>probe_rate</key>
31                 <value>10</value>
32                 <type>real</type>
33         </param>
34         <source>
35                 <name>out</name>
36                 <type>float</type>
37         </source>
38         <doc>
39 Polls a function of an arbitrary block and writes the value to the output port. \
40 The block id is the id of another block in the flow graph. \
41 The function name is the name of a function in the said block. \
42 The function should take no arguments and return a floating point or integer number.
43         </doc>
44 </block>