discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] top block edge list


From: Ryan Marlow
Subject: Re: [Discuss-gnuradio] top block edge list
Date: Thu, 2 Oct 2014 09:48:57 -0400

Hey Jeff,
 I had previously found those two options but was unsure if I was missing anything else. dot_graph() seemed like a good option but it doesn't have the block port information, like the term "dot graph" implies. I suppose I'll just wait until after tb.start().
Thanks for your response,
Ryan

Ryan,

You can print the edge list using

  print tb.edge_list()

BUT, it's not populated until after tb.start(). You can either wait until after tb.start(), or you can use
  print tb.dot_graph()

before tb.start(). It's meant to be input to dot (graphviz) but it's human readable. "dotty" didn't actually parse it right, but I could have done something wrong there.
- Jeff

On 10/01/2014 04:58 PM, Ryan Marlow wrote:
Hello All,
I'm trying to access the data inside the top block class, from a custom
function or at the very least print out some of it as a test. Is there a
way to see the data in the top block edge_list() before running
top_block.start()? I'd like to access this without modifying any of the
code in gnuradio-runtime so just using already provided functions in
top_block.
Thanks,
Ryan

--
Ryan L. Marlow
Research Assistant in CCM Lab <http://ccm.ece.vt.edu>
Virginia <http://www.vt.edu/> Polytechnic Institute and State University


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



--
Ryan L. Marlow
Computer Engineering - MS Student
Virginia Polytechnic Institute and State University

reply via email to

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