On 06/01/2011 10:10 PM, Yang wrote: > Oh, my problem is the same with yours: I want to change transmit > frequency according to the sensing result from rx side. I tried lock() > and unlock() but cannot work. > You know that you can change frequency at any time, right? You don't have to lock the flowgraph to do so. It's a simple parameter change, not a flow-graph configuration change. Reconfiguration in the lock()/unlock() sense involves ripping blocks out of the graph and installing new ones.
But simple parameter changes for an existing, running, graph don't count as "reconfiguration". Also, if I had this problem to cope with, I wouldn't bother with any of that fancy lock()/reconfigure/unlock() stuff. I'd have my transmit chain, and my receive chain, and some logic, and I'd simply arrange for my transmit chain to transmit nothing while I was in the "explore the spectrum" phase--either by sending 0s, or using a "valve". -- Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio