Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread Marcus Müller
so if you replace lines 70-79 and replace them with tb.stop(), you get bytes in your file? How many? Is it much more than 52*8? Do you actually guarantee that there should be output of ofdm_rx_0 or does this happen coincidentially? Something as complex as an OFDM receiver really shouldn't be used

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread xianda
Hi Marcus: Thank you so much for your kindly reply.I have attached my code.I want to run the flowgraph 1 at first,and then I disconnct it.Then I want to run the flowgraph 2. Flowgraph 1: uhd_usrp_source>>>ofdm_rx_0>>>file sink

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread xianda
Hi Marcus: Thank you so much.Do you indicate my new flowgraph had run?I have add a file sink,but it is null.And I think it don't run.I don't know why.Can you give me some advices?Thank you so much. Best regards, xd At 2014-07-25 05:27:28, "Marcus Müller" wrote: >Hi xianda

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread xianda
Hi Marcus: Thank you for your reply.Sorry for that if you can't understand.I will try my best to explain my question. def main(): tb=my_top_block() tb.start() time.sleep(30) #stop flowgraph tb.lock()

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread Marcus Müller
Xianda, my advice: Please try to draw a complete picture of what you are doing. What are your sources, blocks you interchange, your sinks, what do you do to make your flowgraph stop (under which circumstances)? I really can't read your mind; all I know about your flow graph is what you tell me, whi

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread Marcus Müller
Hi xianda, tb.wait() does exactly what you said it does: Wait for the flow graph to complete.A flowgraph will run until one of the blocks in that flowgraph signal that they're done, or you call tb.stop(). If you don't have such a block, your tb will run forever, and wait() will never return. Gree

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-25 Thread Marcus Müller
Hi Xianda, as usual, saying "doesn't work", "can't run", "behaves wrong" really gives no clue what's wrong. Please follow http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors , especially "How do I ask?". Greetings, Marcus On 25.07.2014 09:36, xianda wrote: > Hi Marcus: >

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-21 Thread Marcus Müller
unless you also disconnect block A and sink1, GNU Radio will continue to assume that block A should produce output for sink1, and it can't do that without input. Greetings, Marcus On 21.07.2014 13:43, xianda wrote: > I forget to say:the "sink" also different with each other.Namely: >

Re: [Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-21 Thread xianda
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" wrote: Hi all: Thank

[Discuss-gnuradio] Reconfiguring Flowgraphs

2014-07-21 Thread xianda
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: