discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] usrp_siggen.py exits on Mac OS X


From: Jonathan Jacky
Subject: [Discuss-gnuradio] usrp_siggen.py exits on Mac OS X
Date: Wed, 29 Mar 2006 13:55:59 -0800 (PST)


Eric,

Whe I try to run a recent version of usrp_siggen.py from CVS on Mac OS X, it produces the requested output signal for just a second or so, then exits.

I see in the source code, at the end of main:

     try:
        fg.start()
    except KeyboardInterrupt:
        pass
    fg.stop()

As I understand it, this code executes fg.start(), which returns almost immediately, and then executes fg.stop(), and then exits from main.

On my system, the code does not wait in fg.start() for a keyboard interrupt.

For now, in my working version I've changed the end of main back to:

    fg.start ()
    raw_input ('Press Enter to quit: ')
    fg.stop()

That works as it should - usrp_siggen keeps running until I type ^C.

Jon Jacky






reply via email to

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