commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6476 - grc/trunk/src/SignalBlockDefs


From: jblum
Subject: [Commit-gnuradio] r6476 - grc/trunk/src/SignalBlockDefs
Date: Wed, 19 Sep 2007 14:11:56 -0600 (MDT)

Author: jblum
Date: 2007-09-19 14:11:56 -0600 (Wed, 19 Sep 2007)
New Revision: 6476

Modified:
   grc/trunk/src/SignalBlockDefs/GraphicalSinks.py
   grc/trunk/src/SignalBlockDefs/Sinks.py
Log:
fixed numeric sink and variable sink

Modified: grc/trunk/src/SignalBlockDefs/GraphicalSinks.py
===================================================================
--- grc/trunk/src/SignalBlockDefs/GraphicalSinks.py     2007-09-19 18:30:22 UTC 
(rev 6475)
+++ grc/trunk/src/SignalBlockDefs/GraphicalSinks.py     2007-09-19 20:11:56 UTC 
(rev 6476)
@@ -184,7 +184,7 @@
                fg.add_callback(block.set_base_value, base)
                fg.add_callback(block.set_ref_level, ref_lvl)
                fg.add_callback(block.set_decimal_places, decimals)
-               throttle = gr.throttle(Complex().get_num_bytes(), 
samp_rate.parse())
+               throttle = gr.throttle(type.parse()[1].get_num_bytes(), 
samp_rate.parse())
                fg.connect(throttle, block)
                return throttle
        return sb, make

Modified: grc/trunk/src/SignalBlockDefs/Sinks.py
===================================================================
--- grc/trunk/src/SignalBlockDefs/Sinks.py      2007-09-19 18:30:22 UTC (rev 
6475)
+++ grc/trunk/src/SignalBlockDefs/Sinks.py      2007-09-19 20:11:56 UTC (rev 
6476)
@@ -136,7 +136,9 @@
                item_size = type.parse().get_num_bytes()
                block = gr.message_sink(item_size, msgq, True)
                var_sink_thread = VariableSinkThread(fg, var_key.parse(), msgq)
-               return ThrottleHelper(item_size, samp_rate.parse(), block, True)
+               throttle = gr.throttle(item_size, samp_rate.parse())
+               fg.connect(throttle, block)             
+               return throttle
        return sb, make 
        
        
\ No newline at end of file





reply via email to

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