discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] tb lock and unlock with USRP2


From: Kieran Brownlees
Subject: [Discuss-gnuradio] tb lock and unlock with USRP2
Date: Wed, 25 Feb 2009 11:54:48 +1300

Hello all,

I seem to be having some strange behaviour when trying to lock and unlock multiple times. I am using a USRP2 with the latest trunk of GNU Radio (just compiled/update the firmware and updated FPGA code to the latest release), and Ubuntu 8.10 Server as the OS.

The test script I am using is:

class top_block(gr.top_block):
    def __init__(self):
        gr.top_block.__init__(self)
        self._usrp_source = usrp2.source_32fc('eth1', '00:50:c2:85:30:6d')
        self.connect(self._usrp_source, gr.null_sink(8))

if __name__ == '__main__':
    app = top_block()
    app.start()
    for x in range (2):
        print str(x) + " Lock"
        app.lock()
        print str(x) + " Unlock"
        app.unlock()
       
    print "Pass"
    app.stop()

When I run this script it hangs on the second call of unlock and never makes it to pass.

Any ideas?

Thank You,
Kieran

reply via email to

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