discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs


From: xianda
Subject: Re: [Discuss-gnuradio] Reconfiguring Flowgraphs
Date: Mon, 21 Jul 2014 19:43:08 +0800 (CST)

I forget to say:the "sink" also different with each other.Namely:
                        source--->block A(just one block)--->sink1
                        source--->block B(just one block)--->sink2
Can someone help me?Thanks.





At 2014-07-21 06:50:10, "xianda" <address@hidden> wrote:
Hi all:
         Thank you in advance.I want to ask some questions about the "Reconfiguring Flowgraphs".
         My flowgraphs:
                                  source--->block A(just one block)--->sink
And I want to run the flowgraphs for 30 seconds,and then run the other flowgraphs:
                                   source--->block B(just one block)--->sink
And I have read the API,and then I write something like this:
def main():
tb=my_top_block()
tb.start()
time.sleep(30)

#stop flowgraph
tb.lock()
tb.disconnect((tb.uhd_usrp_source_0,0),(tb.rx_0,0))

#start flowgraph
tb.connect((tb.uhd_usrp_source_0,0),(tb.rx_1,0))
tb.connect((tb.rx_1,0),tb.snk)
                # blockA:(tb.rx_0,0) blockB:(tb.rx_1,0)
                tb.unlock()

tb.wait()
But it go error:    RuntimeError: delay(4): insufficient connected input ports (1 needed, 0 connected)
Can someone help me?Thank you.
Best regards,
xd




reply via email to

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