discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] how to decrease the latency of reconfiguring the para


From: Yan Nie
Subject: [Discuss-gnuradio] how to decrease the latency of reconfiguring the parameters to sub-blocks while tb is running
Date: Tue, 08 Mar 2011 13:34:18 -0500

Dear all, I got latency when the parameter of the blocks is reconfigured while the top_block is running. Could anyone give some suggestion how to reduce this latency? The flowgraph that I build is: message_source --> chunks_to_symbols([-1,1])-->multiply_const_ff --> float_to_short -->usrp_sink_s When the flow graph is running, I'm suppose to reconfigure the amplitude of the signal, which is implement by reconfiguring the parameter of multiply_const_ff using its sub-function set_k(). However, by changing the parameter I got some latency which makes the data using the previous parameter setting. This means after the set_k() function is called, the first 512 byte of data insert into the flow graph will keep the previous parameter setting. the code in flow graph running: tb.start() try: while 1: i = 1 tb.set_amp(2000) msg_13 = message_from_string(payload_13)# payload_13 contains 13 group of 512 bytes data tb._ls.msgq.insert_tail(mag_13) tb.set_amp(0) while(i < 5) msg_stop = message_from_string(stop_sign)#stop_sign contains 13 group of 512 bytes data tb._ls.msgq.insert_tail(msg_stop) i += 1 tb.wait() except KeyboardInterrupt Really appreciate any of your suggestion on the solution! Thank you so much! Thanks, Yan

reply via email to

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