Forum: GNU Radio View a null_source with scope_sink: 100% CPU

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris S. (Guest)
on 2006-12-24 01:38
(Received via mailing list)
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. (Guest)
on 2006-12-24 06:00
(Received via mailing list)
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
This topic is locked and can not be replied to.