nick@smidgen:~/Desktop$ geany wat.pl nick@smidgen:~/Desktop$ chmod u+x wat.pl nick@smidgen:~/Desktop$ ./wat.pl start lock unlock reconfigured now stopping stopped nick@smidgen:~/Desktop$
The gr-usrp component has been around, and essentially unchanged, for some years now, and it's been used with lock/unlock for that entire time. Perhaps you can give us more information about your system? --n On Fri, 2011-05-27 at 19:05 +0200, Johannes Schmitz wrote: > #!/usr/bin/env python > > from gnuradio import gr > from gnuradio import usrp > > from time import sleep > > class top_block(gr.top_block): > def __init__(self): > gr.top_block.__init__(self, "fusb error") > > self.u = usrp.source_c () > self.sink = gr.null_sink(gr.sizeof_gr_complex) > self.connect(self.u, self.sink) > > def reconfigure(self): > self.lock() > print 'lock' > self.unlock() > print 'unlock' > > if __name__ == '__main__': > app = top_block() > app.start() > #sleep(1) > print 'start' > app.reconfigure() > print "reconfigured" > sleep(1) > print 'now stopping' > app.stop() > print 'stopped' _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
