[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10389 - in gnuradio/trunk/grc/data/platforms/python:
From: |
jblum |
Subject: |
[Commit-gnuradio] r10389 - in gnuradio/trunk/grc/data/platforms/python: . blocks |
Date: |
Wed, 4 Feb 2009 14:25:51 -0700 (MST) |
Author: jblum
Date: 2009-02-04 14:25:49 -0700 (Wed, 04 Feb 2009)
New Revision: 10389
Modified:
gnuradio/trunk/grc/data/platforms/python/blocks/options.xml
gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl
Log:
rt sched option in grc
Modified: gnuradio/trunk/grc/data/platforms/python/blocks/options.xml
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/options.xml 2009-02-04
21:02:29 UTC (rev 10388)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/options.xml 2009-02-04
21:25:49 UTC (rev 10389)
@@ -49,17 +49,14 @@
<option>
<name>WX GUI</name>
<key>wx_gui</key>
- <opt>hide_category:all</opt>
</option>
<option>
<name>No GUI</name>
<key>no_gui</key>
- <opt>hide_category:all</opt>
</option>
<option>
<name>Hier Block</name>
<key>hb</key>
- <opt>hide_category:</opt>
</option>
</param>
<param>
@@ -67,8 +64,29 @@
<key>category</key>
<value>Custom</value>
<type>string</type>
- <hide>$generate_options.hide_category</hide>
+ <hide>#if $generate_options.eval == 'hb' then 'none' else
'all'#</hide>
</param>
+ <param>
+ <name>Realtime Scheduling</name>
+ <key>realtime_scheduling</key>
+ <value></value>
+ <type>enum</type>
+ <hide>#if $generate_options.eval == 'hb'
+all#slurp
+#elif $realtime_scheduling.eval
+none#slurp
+#else
+part#slurp
+#end if</hide>
+ <option>
+ <name>Off</name>
+ <key></key>
+ </option>
+ <option>
+ <name>On</name>
+ <key>1</key>
+ </option>
+ </param>
<check>len($window_size) == 2</check>
<check>300 <= $(window_size)[0] <= 2048</check>
<check>300 <= $(window_size)[1] <= 2048</check>
Modified: gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl 2009-02-04
21:02:29 UTC (rev 10388)
+++ gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl 2009-02-04
21:25:49 UTC (rev 10389)
@@ -191,6 +191,10 @@
#end for
(options, args) = parser.parse_args()
#end if
+ #if $flow_graph.get_option('realtime_scheduling')
+ if gr.enable_realtime_scheduling() != gr.RT_OK:
+ print "Error: failed to enable realtime scheduling."
+ #end if
tb = $(class_name)($(', '.join($args)))
#if $generate_options == 'wx_gui'
tb.Run()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10389 - in gnuradio/trunk/grc/data/platforms/python: . blocks,
jblum <=