View a null_source with scope_sink: 100% CPU

Hi,

Am I doing something wrong? This program uses all my CPU and does not
respond to mouse inputs:

self.scope = scopesink.scope_sink_f(self, panel,sample_rate=10)
source = gr.null_source(gr.sizeof_float)
self.connect(source, self.scope)

I attached the entire program to this message.

Thank you!

Chris

Chris S. wrote:

self.scope = scopesink.scope_sink_f(self, panel,sample_rate=10)
source = gr.null_source(gr.sizeof_float)
self.connect(source, self.scope)

Thanks for your private responses. The solution was to add a
gr.throttle:

slowdown = gr.throttle(gr.sizeof_float,100e3)

Chris