Dear all,

I'm trying to stop top_block implementing the signal transmission for 5 
milliseconds and then restart the signal transmission at the transmitter side, 
by using the tb.stop() then time.sleep(0.005) to suspend the system for 5 
milliseconds then tb.start() to start the signal transmission again. This 
approach gives an 
RuntimeError: top_block::start: top block already running or wait() not called 
after previous  stop().

Could you please help me to find what the problem is?  I also tried lock() and 
unlock() which cannot stop the signal transmission implemented in top_block.

the code that I use for data transmission is:

payload_13bit = '\x01\x01\x01\x01\x01\x0'
while(start_flag ==  1)
           msg_13bit = gr.message_from_string(payload_13bit)
           top_block._ls_msgq.insert_tail(msg_13bit)
           top_block.stop()
           time.sleep(0.005)
           top_block.start()
           top_block.wait()

I will really appreciate any of suggestion on this problem.

Thanks,
Yan

<<attachment: ynie3.vcf>>

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

Reply via email to