From: jcorgan Date: Mon, 19 Jan 2009 21:51:07 +0000 (+0000) Subject: enable_realtime in usrp2_siggen.py X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0dcb587d948787215b6367725e7483fc4cbcd94d;p=debian%2Fgnuradio enable_realtime in usrp2_siggen.py git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10262 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-utils/src/python/usrp2_siggen.py b/gr-utils/src/python/usrp2_siggen.py index d3be4b26..9929112e 100755 --- a/gr-utils/src/python/usrp2_siggen.py +++ b/gr-utils/src/python/usrp2_siggen.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2008 Free Software Foundation, Inc. +# Copyright 2008,2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -173,6 +173,14 @@ if __name__ == '__main__': options = get_options() tb = siggen_top_block(options) + # Attempt to enable realtime scheduling + r = gr.enable_realtime_scheduling() + if r == gr.RT_OK: + realtime = True + else: + realtime = False + print "Note: failed to enable realtime scheduling" + try: tb.run() except KeyboardInterrupt: