This is precisely the problem I'm seeing that kills my USB. I have to ctrl+c to keep that from happening.
On 05/27/2011 12:05 PM, Johannes Schmitz wrote: > I made a simple example to show how it happens. > It is a problem of lock/unlock in combination with usrp. > > Like this the lock unlock disconnect seems to absolutely unusable :( > > ------------------------------------- > > #!/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 _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
