config properties and rates for gl sinks
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 22 Sep 2008 02:37:46 +0000 (02:37 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 22 Sep 2008 02:37:46 +0000 (02:37 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9637 221aa14e-8319-0410-a670-987f0aec2ac5

gr-wxgui/README.gl
gr-wxgui/src/python/const_window.py
gr-wxgui/src/python/fft_window.py
gr-wxgui/src/python/number_window.py
gr-wxgui/src/python/scope_window.py
gr-wxgui/src/python/waterfall_window.py

index 660758706c1d5c2d5f27a101b06782ce51a1142c..1d3eec60bec5bb75f12996b9e3fbf55ad639550b 100644 (file)
@@ -7,14 +7,23 @@ editing an entry in the GNU Radio preferences file at:
 
 [wxgui]
 style=gl
+fft_rate=30
+waterfall_rate=30
+scope_rate=30
+number_rate=5
+const_rate=5
+const_size=2048
 
+>>>The style parameter accepts 'nongl', 'gl', and 'auto', and defaults to 'auto'.
 
-The style parameter accepts 'nongl', 'gl', and 'auto', and defaults to 'auto'.
-
-'nongl' forces the use of the non-GL (current) sinks.  
+'nongl' forces the use of the non-GL (current) sinks.
 
 'gl' forces the use of the new GL based sinks, and will raise an exception if the
 appropriate GL support does not exist.
 
 'auto' currently equates to 'nongl'; however, in release 3.2, this will change to
 use GL if possible and if not, fallback to the non-GL versions.
+
+>>>The *_rate parameter sets the frame rate for various gl sinks.
+
+>>>The const_size parameter sets the number of constellation points per frame.
index 0aea5b596bd3e01c29c7f141eb41cc0523e7dee8..cb7236b4924255af1a8db273e9d7d5a76155f718 100644 (file)
@@ -29,6 +29,7 @@ import numpy
 import math
 import pubsub
 from constants import *
+from gnuradio import gr #for gr.prefs
 
 ##################################################
 # Constants
@@ -36,9 +37,9 @@ from constants import *
 SLIDER_STEPS = 200
 ALPHA_MIN_EXP, ALPHA_MAX_EXP = -6, -0.301
 GAIN_MU_MIN_EXP, GAIN_MU_MAX_EXP = -6, -0.301
-DEFAULT_FRAME_RATE = 5
+DEFAULT_FRAME_RATE = gr.prefs().get_long('wxgui', 'const_rate', 5)
 DEFAULT_WIN_SIZE = (500, 400)
-DEFAULT_CONST_SIZE = 2048
+DEFAULT_CONST_SIZE = gr.prefs().get_long('wxgui', 'const_size', 2048)
 CONST_PLOT_COLOR_SPEC = (0, 0, 1)
 MARKER_TYPES = (
        ('Dot Small', 1.0),
index a8c66dc89b5e9b79a9f4d6ad5f5e27e874a9ce6a..e7affb1b006fb302f6dac71d39ddc3a29f1a6cf3 100644 (file)
@@ -29,6 +29,7 @@ import numpy
 import math
 import pubsub
 from constants import *
+from gnuradio import gr #for gr.prefs
 
 ##################################################
 # Constants
@@ -36,7 +37,7 @@ from constants import *
 SLIDER_STEPS = 100
 AVG_ALPHA_MIN_EXP, AVG_ALPHA_MAX_EXP = -3, 0
 DEFAULT_WIN_SIZE = (600, 300)
-DEFAULT_FRAME_RATE = 30
+DEFAULT_FRAME_RATE = gr.prefs().get_long('wxgui', 'fft_rate', 30)
 DIV_LEVELS = (1, 2, 5, 10, 20)
 FFT_PLOT_COLOR_SPEC = (0, 0, 1)
 PEAK_VALS_COLOR_SPEC = (0, 1, 0)
index 83f19f6eb33e1451f65f92e5e3ff1d920acd224a..e3fc4653efe7197e318a385c0f52faa5de46b79e 100644 (file)
@@ -27,6 +27,7 @@ import numpy
 import wx
 import pubsub
 from constants import *
+from gnuradio import gr #for gr.prefs
 
 ##################################################
 # Constants
@@ -34,7 +35,7 @@ from constants import *
 NEG_INF = float('-inf')
 SLIDER_STEPS = 100
 AVG_ALPHA_MIN_EXP, AVG_ALPHA_MAX_EXP = -3, 0
-DEFAULT_NUMBER_RATE = 5
+DEFAULT_NUMBER_RATE = gr.prefs().get_long('wxgui', 'number_rate', 5)
 DEFAULT_WIN_SIZE = (300, 300)
 DEFAULT_GAUGE_RANGE = 1000
 
index 2b220c9a71465087dc0d171d7882f24aedf7a547..57905ca4d54aadfa00b0285c1806fc51bce0353a 100644 (file)
@@ -29,11 +29,12 @@ import numpy
 import time
 import pubsub
 from constants import *
+from gnuradio import gr #for gr.prefs
 
 ##################################################
 # Constants
 ##################################################
-DEFAULT_FRAME_RATE = 30
+DEFAULT_FRAME_RATE = gr.prefs().get_long('wxgui', 'scope_rate', 30)
 DEFAULT_WIN_SIZE = (600, 300)
 DEFAULT_V_SCALE = 1000
 TRIGGER_MODES = (
index 51bd01881b23072095a9b681b1e86d8c4ea5e498..702f97099ce621ae3da24494ce8553ed8f228772 100644 (file)
@@ -29,13 +29,14 @@ import numpy
 import math
 import pubsub
 from constants import *
+from gnuradio import gr #for gr.prefs
 
 ##################################################
 # Constants
 ##################################################
 SLIDER_STEPS = 100
 AVG_ALPHA_MIN_EXP, AVG_ALPHA_MAX_EXP = -3, 0
-DEFAULT_FRAME_RATE = 30
+DEFAULT_FRAME_RATE = gr.prefs().get_long('wxgui', 'waterfall_rate', 30)
 DEFAULT_WIN_SIZE = (600, 300)
 DIV_LEVELS = (1, 2, 5, 10, 20)
 MIN_DYNAMIC_RANGE, MAX_DYNAMIC_RANGE = 10, 200