[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r4772 - gnuradio/branches/developers/jcorgan/channel/g
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r4772 - gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder |
Date: |
Sat, 17 Mar 2007 19:11:25 -0600 (MDT) |
Author: jcorgan
Date: 2007-03-17 19:11:25 -0600 (Sat, 17 Mar 2007)
New Revision: 4772
Modified:
gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder/usrp_sounder_tx.py
Log:
Added realtime option to transmitter.
Modified:
gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder/usrp_sounder_tx.py
===================================================================
---
gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder/usrp_sounder_tx.py
2007-03-18 01:10:16 UTC (rev 4771)
+++
gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder/usrp_sounder_tx.py
2007-03-18 01:11:25 UTC (rev 4772)
@@ -79,12 +79,25 @@
help="set sounder chip rate (default=%default)")
parser.add_option("-g", "--amplitude", type="eng_float", default=8000.0,
help="set output amplitude (default=%default)")
+ parser.add_option("", "--real-time", action="store_true",
default=False,
+ help="Attempt to enable real-time scheduling")
(options, args) = parser.parse_args()
if len(args) != 0:
parser.print_help()
sys.exit(1)
+ if not options.real_time:
+ realtime = False
+ else:
+ # 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"
+
# Create an instance of a hierarchical block
top_block = usrp_sounder_tx(options.tx_subdev_spec, options.freq,
options.cal,
options.verbose, options.max_delay,
options.chip_rate,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r4772 - gnuradio/branches/developers/jcorgan/channel/gnuradio-examples/python/hier/sounder,
jcorgan <=