[Discuss-gnuradio] problems in locking and unlocking the flow-graph
From:
niaz ahmed
Subject:
[Discuss-gnuradio] problems in locking and unlocking the flow-graph
Date:
Sun, 31 Jul 2011 18:38:51 +0500
hi, I am designing a transmitter which needs to transmit two different types , tone (of 1k frequency) and data (2k & 3k frequency).Both of them take user input, does processing and produce output on sound card of the laptop (am not using usrp).
I have implemented this all in a single flow graph and used lock and unlock to reconfigure the flow-graph.But it gets to a hanging state and looks like it is waiting for something in queue. I did try to use gr.message(1) before locking , which locked and unlocked the flow-graph but the problem is that after using gr.message(1), self.src does not get further data from the queue and without using it, it is stucked.
plz find some way out for me to transmit tone and data as required.
class tx_graph(gr.top_block):
def __init__(self): gr.top_block.__init__(self)
self.src = "" msgq_limit)
# # tone_blocks // tone processing blocks here #
# # data_blocks // data processing blocks here #
self.sink = audio.sink(audio_rate,"plughw:0,0")
self.connect(self.src,//data_blocks//,self.sink) # assume that initially data is being transmitted
if __name__ == '__main__': # main python entry here
try: main() except KeyboardInterrupt: pass
-- Niaz Ahmed
“We
are always more anxious to be distinguished for a talent which we do
not possess, than to be praised for the fifteen which we do possess” : Mark Twain
[Prev in Thread]
Current Thread
[Next in Thread]
[Discuss-gnuradio] problems in locking and unlocking the flow-graph,
niaz ahmed<=