[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Multiple flow graphs, proper design
From: |
Ryan Pape |
Subject: |
[Discuss-gnuradio] Multiple flow graphs, proper design |
Date: |
Sat, 7 Jan 2012 12:45:25 -0600 |
I have a standalone application, that follows the following pattern:
While True:
x = dequeue()
if X=A
tb = gr.top_block()
<create blocks>
tb.connect(<blocks>)
tb.run()
if X=B
similar but different set of blocks
Is this a right or wrong way to instantiate and use multiple flow graphs? I am creating an entirely new top_block() on each iteration, of which there are 10-20 minute. Over the course of several days, memory consumption grows and performance slows.
As I try and narrow down the cause, I want to first rule out whether I am doing anything wrong on the GNURadio side of the equation by how I am creating and using multiple graphs.
Thanks