commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 21/25: grc: function probe block: relabel a


From: git
Subject: [Commit-gnuradio] [gnuradio] 21/25: grc: function probe block: relabel and move value param
Date: Fri, 27 May 2016 19:14:59 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 974c5405bf80500acfc646fd81599b915b3fa2f2
Author: Sebastian Koslowski <address@hidden>
Date:   Wed May 25 16:26:19 2016 +0200

    grc: function probe block: relabel and move value param
---
 grc/blocks/variable_function_probe.xml | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/grc/blocks/variable_function_probe.xml 
b/grc/blocks/variable_function_probe.xml
index baa996c..47c11b2 100644
--- a/grc/blocks/variable_function_probe.xml
+++ b/grc/blocks/variable_function_probe.xml
@@ -10,7 +10,7 @@
        <import>import time</import>
        <import>import threading</import>
        <var_make>self.$(id) = $(id) = $value</var_make>
-       <make>#slurp
+       <make>
 def _$(id)_probe():
     while True:
         #set $obj = 'self' + ('.' + $block_id() if $block_id() else '')
@@ -22,15 +22,10 @@ def _$(id)_probe():
         time.sleep(1.0 / ($poll_rate))
 _$(id)_thread = threading.Thread(target=_$(id)_probe)
 _$(id)_thread.daemon = True
-_$(id)_thread.start()</make>
+_$(id)_thread.start()
+    </make>
        <callback>self.set_$(id)($value)</callback>
        <param>
-               <name>Value</name>
-               <key>value</key>
-               <value>0</value>
-               <type>raw</type>
-       </param>
-       <param>
                <name>Block ID</name>
                <key>block_id</key>
                <value>my_block_0</value>
@@ -55,6 +50,13 @@ _$(id)_thread.start()</make>
                <value>10</value>
                <type>real</type>
        </param>
+       <param>
+               <name>Initial Value</name>
+               <key>value</key>
+               <value>0</value>
+               <type>raw</type>
+        <hide>part</hide>
+       </param>
        <doc>
 Periodically probe a function and set its value to this variable.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]