diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-01-19 21:51:07 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-01-19 21:51:07 +0000 |
commit | 0dcb587d948787215b6367725e7483fc4cbcd94d (patch) | |
tree | b4cac78ee575313c602e34670e16d21b56521dc9 /gr-utils/src | |
parent | 55f9faf59065140a3b84f63c6b6deda9909c6f19 (diff) |
enable_realtime in usrp2_siggen.py
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10262 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src')
-rwxr-xr-x | gr-utils/src/python/usrp2_siggen.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gr-utils/src/python/usrp2_siggen.py b/gr-utils/src/python/usrp2_siggen.py index d3be4b26a3..9929112ef5 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: |