[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10262 - gnuradio/trunk/gr-utils/src/python
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r10262 - gnuradio/trunk/gr-utils/src/python |
Date: |
Mon, 19 Jan 2009 14:51:10 -0700 (MST) |
Author: jcorgan
Date: 2009-01-19 14:51:07 -0700 (Mon, 19 Jan 2009)
New Revision: 10262
Modified:
gnuradio/trunk/gr-utils/src/python/usrp2_siggen.py
Log:
enable_realtime in usrp2_siggen.py
Modified: gnuradio/trunk/gr-utils/src/python/usrp2_siggen.py
===================================================================
--- gnuradio/trunk/gr-utils/src/python/usrp2_siggen.py 2009-01-19 21:21:40 UTC
(rev 10261)
+++ gnuradio/trunk/gr-utils/src/python/usrp2_siggen.py 2009-01-19 21:51:07 UTC
(rev 10262)
@@ -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 @@
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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10262 - gnuradio/trunk/gr-utils/src/python,
jcorgan <=