[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory
From: |
Nick Foster |
Subject: |
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory |
Date: |
Fri, 27 May 2011 10:54:30 -0700 |
address@hidden:~/Desktop$ geany wat.pl
address@hidden:~/Desktop$ chmod u+x wat.pl
address@hidden:~/Desktop$ ./wat.pl
start
lock
unlock
reconfigured
now stopping
stopped
address@hidden:~/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'
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory, Thomas Tsou, 2011/05/27
Re: [Discuss-gnuradio] fusb: (rd status -2) No such file or directory, Thomas Tsou, 2011/05/30