-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- $value in $choices
- not $labels or len($labels) == len($choices)
-
-This block creates a variable with a drop down, radio buttons, or a button. \
-Leave the label blank to use the variable id as the label. \
-The value index is the index of a particular choice, \
-which defines the default choice when the flow graph starts. \
-The choices must be a list of possible values. \
-Leave labels empty to use the choices as the labels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/variable_slider.xml b/grc/blocks/variable_slider.xml
deleted file mode 100644
index c13d20856..000000000
--- a/grc/blocks/variable_slider.xml
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
- Variable Slider
- variable_slider
- from gnuradio.wxgui import forms
- self.$(id) = $(id) = $value
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-#set $win = '_%s_sizer'%$id
-$win = wx.BoxSizer(wx.VERTICAL)
-self._$(id)_text_box = forms.text_box(
- parent=$(parent).GetWin(),
- sizer=$win,
- value=self.$id,
- callback=self.set_$(id),
- #if $label()
- label=$label,
- #else
- label='$id',
- #end if
- converter=forms.$(converver)(),
- proportion=0,
-)
-self._$(id)_slider = forms.slider(
- parent=$(parent).GetWin(),
- sizer=$win,
- value=self.$id,
- callback=self.set_$(id),
- minimum=$min,
- maximum=$max,
- num_steps=$num_steps,
- style=$style,
- cast=$(converver.slider_cast),
- proportion=1,
-)
-#if not $grid_pos()
-$(parent).Add($win)
-#else
-$(parent).GridAdd($win, $(', '.join(map(str, $grid_pos()))))
-#end if
- self.set_$(id)($value)
- self._$(id)_slider.set_value($id)
- self._$(id)_text_box.set_value($id)
-
- Label
- label
-
- string
- #if $label() then 'none' else 'part'#
-
-
- Default Value
- value
- 50
- real
-
-
- Minimum
- min
- 0
- real
-
-
- Maximum
- max
- 100
- real
-
-
- Num Steps
- num_steps
- 100
- int
- part
-
-
- Style
- style
- wx.SL_HORIZONTAL
- enum
- part
-
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- $min <= $value <= $max
- $min < $max
- 0 < $num_steps <= 1000
-
-This block creates a variable with a slider. \
-Leave the label blank to use the variable id as the label. \
-The value must be a real number. \
-The value must be between the minimum and the maximum. \
-The number of steps must be between 0 and 1000.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/variable_static_text.xml b/grc/blocks/variable_static_text.xml
deleted file mode 100644
index c866b998d..000000000
--- a/grc/blocks/variable_static_text.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
- Variable Static Text
- variable_static_text
- from gnuradio.wxgui import forms
- self.$(id) = $(id) = $value
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-#set $win = 'self._%s_static_text'%$id
-$win = forms.static_text(
- parent=$(parent).GetWin(),
- value=self.$id,
- callback=self.set_$(id),
- #if $label()
- label=$label,
- #else
- label='$id',
- #end if
- #if $formatter()
- converter=forms.$(converver)(formatter=$formatter),
- #else
- converter=forms.$(converver)(),
- #end if
-)
-#if not $grid_pos()
-$(parent).Add($win)
-#else
-$(parent).GridAdd($win, $(', '.join(map(str, $grid_pos()))))
-#end if
- self.set_$(id)($value)
- self._$(id)_static_text.set_value($id)
-
- Label
- label
-
- string
- #if $label() then 'none' else 'part'#
-
-
- Default Value
- value
- 0
- raw
-
-
- Converter
- converver
- float_converter
- enum
-
- Float
- float_converter
-
-
- Integer
- int_converter
-
-
- String
- str_converter
-
-
-
- Formatter
- formatter
- None
- raw
- part
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
-
-This block creates a variable with a static text form. \
-Leave the label blank to use the variable id as the label.
-
-Format should be a function/lambda that converts a value into a string or None for the default formatter.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/variable_text_box.xml b/grc/blocks/variable_text_box.xml
deleted file mode 100644
index 1b4b4355e..000000000
--- a/grc/blocks/variable_text_box.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
- Variable Text Box
- variable_text_box
- from gnuradio.wxgui import forms
- self.$(id) = $(id) = $value
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-#set $win = 'self._%s_text_box'%$id
-$win = forms.text_box(
- parent=$(parent).GetWin(),
- value=self.$id,
- callback=self.set_$(id),
- #if $label()
- label=$label,
- #else
- label='$id',
- #end if
- #if $formatter()
- converter=forms.$(converver)(formatter=$formatter),
- #else
- converter=forms.$(converver)(),
- #end if
-)
-#if not $grid_pos()
-$(parent).Add($win)
-#else
-$(parent).GridAdd($win, $(', '.join(map(str, $grid_pos()))))
-#end if
- self.set_$(id)($value)
- self._$(id)_text_box.set_value($id)
-
- Label
- label
-
- string
- #if $label() then 'none' else 'part'#
-
-
- Default Value
- value
- 0
- raw
-
-
- Converter
- converver
- float_converter
- enum
-
- Float
- float_converter
-
-
- Integer
- int_converter
-
-
- String
- str_converter
-
-
- Evaluate
- eval_converter
-
-
-
- Formatter
- formatter
- None
- raw
- part
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
-
-This block creates a variable with a text box. \
-Leave the label blank to use the variable id as the label.
-
-Format should be a function/lambda that converts a value into a string or None for the default formatter.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/wxgui_constellationsink2.xml b/grc/blocks/wxgui_constellationsink2.xml
deleted file mode 100644
index 598b55064..000000000
--- a/grc/blocks/wxgui_constellationsink2.xml
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
- Constellation Sink
- wxgui_constellationsink2
- from gnuradio.wxgui import constsink_gl
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-constsink_gl.const_sink_c(
- $(parent).GetWin(),
- title=$title,
- sample_rate=$samp_rate,
- frame_rate=$frame_rate,
- const_size=$const_size,
- M=$M,
- theta=$theta,
- alpha=$alpha,
- fmax=$fmax,
- mu=$mu,
- gain_mu=$gain_mu,
- symbol_rate=$symbol_rate,
- omega_limit=$omega_limit,
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
- set_sample_rate($samp_rate)
-
- Title
- title
- Constellation Plot
- string
-
-
- Sample Rate
- samp_rate
- samp_rate
- real
-
-
- Frame Rate
- frame_rate
- 5
- real
-
-
- Constellation Size
- const_size
- 2048
- real
-
-
- M
- M
- 4
- int
-
-
- Theta
- theta
- 0
- real
-
-
- Alpha
- alpha
- 0.005
- real
-
-
- Max Freq
- fmax
- 0.06
- real
-
-
- Mu
- mu
- 0.5
- real
-
-
- Gain Mu
- gain_mu
- 0.005
- real
-
-
- Symbol Rate
- symbol_rate
- samp_rate/4.
- real
-
-
- Omega Limit
- omega_limit
- 0.005
- real
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- not $win_size or len($win_size) == 2
-
- in
- complex
-
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/wxgui_fftsink2.xml b/grc/blocks/wxgui_fftsink2.xml
deleted file mode 100644
index 8df8f90d0..000000000
--- a/grc/blocks/wxgui_fftsink2.xml
+++ /dev/null
@@ -1,232 +0,0 @@
-
-
-
- FFT Sink
- wxgui_fftsink2
- from gnuradio import window
- from gnuradio.wxgui import fftsink2
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-fftsink2.$(type.fcn)(
- $(parent).GetWin(),
- baseband_freq=$baseband_freq,
- y_per_div=$y_per_div,
- y_divs=$y_divs,
- ref_level=$ref_level,
- ref_scale=$ref_scale,
- sample_rate=$samp_rate,
- fft_size=$fft_size,
- fft_rate=$fft_rate,
- average=$average,
- avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
- title=$title,
- peak_hold=$peak_hold,
-#if $win()
- win=$win,
-#end if
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
- set_baseband_freq($baseband_freq)
- set_sample_rate($samp_rate)
-
- Type
- type
- complex
- enum
-
- Complex
- complex
- fcn:fft_sink_c
-
-
- Float
- float
- fcn:fft_sink_f
-
-
-
- Title
- title
- FFT Plot
- string
-
-
- Sample Rate
- samp_rate
- samp_rate
- real
-
-
- Baseband Freq
- baseband_freq
- 0
- real
-
-
- Y per Div
- y_per_div
- 10
- enum
-
- 1 dB
- 1
-
-
- 2 dB
- 2
-
-
- 5 dB
- 5
-
-
- 10 dB
- 10
-
-
- 20 dB
- 20
-
-
-
- Y Divs
- y_divs
- 10
- int
-
-
- Ref Level (dB)
- ref_level
- 50
- real
-
-
- Ref Scale (p2p)
- ref_scale
- 2.0
- real
-
-
- FFT Size
- fft_size
- 1024
- int
-
-
- Refresh Rate
- fft_rate
- 30
- int
-
-
- Peak Hold
- peak_hold
- False
- enum
- #if $peak_hold() == 'True' then 'none' else 'part'#
-
- On
- True
-
-
- Off
- False
-
-
-
- Average
- average
- False
- enum
- part
-
- On
- True
-
-
- Off
- False
-
-
-
- Average Alpha
- avg_alpha
- 0
- real
- #if $average() == 'True' then 'none' else 'all'#
-
-
- Window
- win
- None
- raw
- #if $win() is None then 'part' else 'none'#
-
- Automatic
- None
-
-
- Blackman-Harris
- window.blackmanharris
-
-
- Hamming
- window.hamming
-
-
- Hanning
- window.hanning
-
-
- Rectangular
- window.rectangular
-
-
- Flattop
- window.flattop
-
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- not $win_size or len($win_size) == 2
-
- in
- $type
-
-
-Set Average Alpha to 0 for automatic setting.
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/wxgui_histosink2.xml b/grc/blocks/wxgui_histosink2.xml
deleted file mode 100644
index 9edf9650d..000000000
--- a/grc/blocks/wxgui_histosink2.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
- Histo Sink
- wxgui_histosink2
- from gnuradio.wxgui import histosink_gl
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-histosink_gl.histo_sink_f(
- $(parent).GetWin(),
- title=$title,
- num_bins=$num_bins,
- frame_size=$frame_size,
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
- set_num_bins($num_bins)
- set_frame_size($frame_size)
-
- Title
- title
- Histogram Plot
- string
-
-
- Num Bins
- num_bins
- 27
- int
-
-
- Frame Size
- frame_size
- 1000
- int
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- not $win_size or len($win_size) == 2
-
- in
- float
-
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/wxgui_numbersink2.xml b/grc/blocks/wxgui_numbersink2.xml
deleted file mode 100644
index ad93dec08..000000000
--- a/grc/blocks/wxgui_numbersink2.xml
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
- Number Sink
- wxgui_numbersink2
- from gnuradio.wxgui import numbersink2
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-numbersink2.$(type.fcn)(
- $(parent).GetWin(),
- unit=$units,
- minval=$min_value,
- maxval=$max_value,
- factor=$factor,
- decimal_places=$decimal_places,
- ref_level=$ref_level,
- sample_rate=$samp_rate,
- number_rate=$number_rate,
- average=$average,
- avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
- label=$title,
- peak_hold=$peak_hold,
- show_gauge=$show_gauge,
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
-
- Type
- type
- complex
- enum
-
- Complex
- complex
- fcn:number_sink_c
-
-
- Float
- float
- fcn:number_sink_f
-
-
-
- Title
- title
- Number Plot
- string
-
-
- Units
- units
- Units
- string
-
-
- Sample Rate
- samp_rate
- samp_rate
- real
-
-
- Min Value
- min_value
- -100
- real
-
-
- Max Value
- max_value
- 100
- real
-
-
- Factor
- factor
- 1.0
- real
-
-
- Decimal Places
- decimal_places
- 10
- int
-
-
- Reference Level
- ref_level
- 0
- real
-
-
- Number Rate
- number_rate
- 15
- int
-
-
- Peak Hold
- peak_hold
- False
- enum
- #if $peak_hold() == 'True' then 'none' else 'part'#
-
- On
- True
-
-
- Off
- False
-
-
-
- Average
- average
- False
- enum
- part
-
- On
- True
-
-
- Off
- False
-
-
-
- Average Alpha
- avg_alpha
- 0
- real
- #if $average() == 'True' then 'none' else 'all'#
-
-
- Show Gauge
- show_gauge
- True
- enum
-
- Show
- True
-
-
- Hide
- False
-
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- not $win_size or len($win_size) == 2
-
- in
- $type
-
-
-Set Average Alpha to 0 for automatic setting.
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-Incoming numbers are multiplied by the factor, and then added-to by the reference level.
-
-
diff --git a/grc/blocks/wxgui_scopesink2.xml b/grc/blocks/wxgui_scopesink2.xml
deleted file mode 100644
index ef0377373..000000000
--- a/grc/blocks/wxgui_scopesink2.xml
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-
- Scope Sink
- wxgui_scopesink2
- from gnuradio.wxgui import scopesink2
- from gnuradio import gr
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-scopesink2.$(type.fcn)(
- $(parent).GetWin(),
- title=$title,
- sample_rate=$samp_rate,
- v_scale=$v_scale,
- v_offset=$v_offset,
- t_scale=$t_scale,
- ac_couple=$ac_couple,
- xy_mode=$xy_mode,
- num_inputs=$num_inputs,
- trig_mode=$trig_mode,
- y_axis_label=$y_axis_label,
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
- set_sample_rate($samp_rate)
-
- Type
- type
- complex
- enum
-
- Complex
- complex
- fcn:scope_sink_c
-
-
- Float
- float
- fcn:scope_sink_f
-
-
-
- Title
- title
- Scope Plot
- string
-
-
- Sample Rate
- samp_rate
- samp_rate
- real
-
-
- V Scale
- v_scale
- 0
- real
- #if $v_scale() then 'none' else 'part'#
-
-
- V Offset
- v_offset
- 0
- real
- #if $v_offset() then 'none' else 'part'#
-
-
- T Scale
- t_scale
- 0
- real
- #if $t_scale() then 'none' else 'part'#
-
-
- AC Couple
- ac_couple
- False
- bool
- #if $ac_couple() then 'none' else 'part'#
-
-
-
- Y Axis Label
- y_axis_label
- Counts
- string
-
- not $win_size or len($win_size) == 2
- not $xy_mode or '$type' == 'complex' or $num_inputs != 1
-
- in
- $type
- $num_inputs
-
-
-Set the V Scale to 0 for the scope to auto-scale.
-
-Set the T Scale to 0 for automatic setting.
-
-XY Mode allows the scope to initialize as an XY plotter.
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
diff --git a/grc/blocks/wxgui_termsink.xml b/grc/blocks/wxgui_termsink.xml
deleted file mode 100644
index 985d89b58..000000000
--- a/grc/blocks/wxgui_termsink.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
- Terminal Sink
- wxgui_termsink
-
- from gnuradio.wxgui import termsink
-
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-termsink.termsink(
- parent=$(parent).GetWin(),
-#if $win_size()
- size=$win_size,
-#end if
- msgq=$(id)_msgq_in,
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id))
-#else
-$(parent).GridAdd(self.$(id), $(', '.join(map(str, $grid_pos()))))
-#end if
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
-
- Notebook
- notebook
-
- notebook
-
-
- not $win_size or len($win_size) == 2
-
-
- in
- msg
-
-
-
diff --git a/grc/blocks/wxgui_waterfallsink2.xml b/grc/blocks/wxgui_waterfallsink2.xml
deleted file mode 100644
index 3de67597f..000000000
--- a/grc/blocks/wxgui_waterfallsink2.xml
+++ /dev/null
@@ -1,189 +0,0 @@
-
-
-
- Waterfall Sink
- wxgui_waterfallsink2
- from gnuradio import window
- from gnuradio.wxgui import waterfallsink2
- #set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
-waterfallsink2.$(type.fcn)(
- $(parent).GetWin(),
- baseband_freq=$baseband_freq,
- dynamic_range=$dynamic_range,
- ref_level=$ref_level,
- ref_scale=$ref_scale,
- sample_rate=$samp_rate,
- fft_size=$fft_size,
- fft_rate=$fft_rate,
- average=$average,
- avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
- title=$title,
-#if $win()
- win=$win,
-#end if
-#if $win_size()
- size=$win_size,
-#end if
-)
-#if not $grid_pos()
-$(parent).Add(self.$(id).win)
-#else
-$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
-#end if
- set_baseband_freq($baseband_freq)
- set_sample_rate($samp_rate)
-
- Type
- type
- complex
- enum
-
- Complex
- complex
- fcn:waterfall_sink_c
-
-
- Float
- float
- fcn:waterfall_sink_f
-
-
-
- Title
- title
- Waterfall Plot
- string
-
-
- Sample Rate
- samp_rate
- samp_rate
- real
-
-
- Baseband Freq
- baseband_freq
- 0
- real
-
-
- Dynamic Range
- dynamic_range
- 100
- real
-
-
- Reference Level
- ref_level
- 50
- real
-
-
- Ref Scale (p2p)
- ref_scale
- 2.0
- real
-
-
- FFT Size
- fft_size
- 512
- int
-
-
- FFT Rate
- fft_rate
- 15
- int
-
-
- Average
- average
- False
- enum
- part
-
- On
- True
-
-
- Off
- False
-
-
-
- Average Alpha
- avg_alpha
- 0
- real
- #if $average() == 'True' then 'none' else 'all'#
-
-
- Window
- win
- None
- raw
- #if $win() is None then 'part' else 'none'#
-
- Automatic
- None
-
-
- Blackman-Harris
- window.blackmanharris
-
-
- Hamming
- window.hamming
-
-
- Hanning
- window.hanning
-
-
- Rectangular
- window.rectangular
-
-
- Flattop
- window.flattop
-
-
-
- Window Size
- win_size
-
- int_vector
- #if $win_size() then 'none' else 'part'#
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- not $win_size or len($win_size) == 2
-
- in
- $type
-
-
-Set Average Alpha to 0 for automatic setting.
-
-Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
--
cgit
From 47f621a14c9a6e3696155dd5a223da40bcb7721c Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Sun, 27 Feb 2011 23:18:11 -0800
Subject: grc: work on generator for gui flowgraphs to simplify generation
generator does not differentiate between notebooks and controls,
they are all block, but block are now sorted by variables present in the make
also adjusted categories listed in the wx and qt widget related blocks
---
grc/blocks/Makefile.am | 3 +--
grc/blocks/block_tree.xml | 17 ++----------
grc/blocks/notebook.xml | 69 -----------------------------------------------
3 files changed, 3 insertions(+), 86 deletions(-)
delete mode 100644 grc/blocks/notebook.xml
(limited to 'grc/blocks')
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am
index 40353a1fa..d9ec0896e 100644
--- a/grc/blocks/Makefile.am
+++ b/grc/blocks/Makefile.am
@@ -1,5 +1,5 @@
#
-# Copyright 2008-2010 Free Software Foundation, Inc.
+# Copyright 2008-2011 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -197,7 +197,6 @@ dist_ourdata_DATA = \
import.xml \
low_pass_filter.xml \
note.xml \
- notebook.xml \
options.xml \
pad_sink.xml \
pad_source.xml \
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 782d6ca9b..50c463f55 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -38,17 +38,6 @@
pad_sinkvirtual_sink
-
-
- Labels
- labels
- ['tab1', 'tab2', 'tab3']
- raw
-
-
- Grid Position
- grid_pos
-
- grid_pos
-
-
- Notebook
- notebook
-
- notebook
-
- isinstance($labels, (list, tuple))
- all(map(lambda x: isinstance(x, str), $labels))
- len($labels) > 0
-
-Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
-
-Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
-
-
--
cgit
From fedf4fbc9d217926ecbb1917d3c995516d88a8a9 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Tue, 1 Mar 2011 18:18:53 -0800
Subject: qtgui-grc: enable start/stop control through qt widgets
---
grc/blocks/options.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'grc/blocks')
diff --git a/grc/blocks/options.xml b/grc/blocks/options.xml
index e6c7e0287..b27ea900c 100644
--- a/grc/blocks/options.xml
+++ b/grc/blocks/options.xml
@@ -105,7 +105,7 @@ else: self.stop(); self.wait()
Truebool
-#if $generate_options() == 'wx_gui'
+#if $generate_options() in ('qt_gui', 'wx_gui')
#if $run()
part
#else
--
cgit
From 7070c10d7ac59adcd597c18ec2c83b1b59ed87e9 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Sun, 6 Mar 2011 11:18:27 -0800
Subject: grc: rework the probe blocks and how they fit into grc
Removed the source on all probe blocks.
Advertise the probe-able function in the docs.
Added missing signal probe block.
Removed probe function and variable sink blocks.
Removed all supporting grc_gnuradio python files.
Added variable_function_probe block that can probe arbitrary functions on a block.
All the code needed by the function probe is available is the make tag.
To display the value of a probe block, use the variable probe block, and a gui widget.
To disply the value of a stream, do the same but use the signal probe block.
Simple see :-)
If more types other than floats need to be read from the stream,
the signal probe should be extended.
---
grc/blocks/Makefile.am | 4 +-
grc/blocks/blks2_variable_sink_x.xml | 77 ----------------------------------
grc/blocks/block_tree.xml | 4 +-
grc/blocks/gr_probe_avg_mag_sqrd_x.xml | 22 +++-------
grc/blocks/gr_probe_density_b.xml | 15 +++----
grc/blocks/gr_probe_mpsk_snr_c.xml | 39 +++--------------
grc/blocks/gr_probe_signal_f.xml | 19 +++++++++
grc/blocks/probe_function.xml | 44 -------------------
grc/blocks/variable_function_probe.xml | 51 ++++++++++++++++++++++
9 files changed, 89 insertions(+), 186 deletions(-)
delete mode 100644 grc/blocks/blks2_variable_sink_x.xml
create mode 100644 grc/blocks/gr_probe_signal_f.xml
delete mode 100644 grc/blocks/probe_function.xml
create mode 100644 grc/blocks/variable_function_probe.xml
(limited to 'grc/blocks')
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am
index d9ec0896e..15c641fbc 100644
--- a/grc/blocks/Makefile.am
+++ b/grc/blocks/Makefile.am
@@ -60,7 +60,6 @@ dist_ourdata_DATA = \
blks2_tcp_sink.xml \
blks2_tcp_source.xml \
blks2_valve.xml \
- blks2_variable_sink_x.xml \
blks2_wfm_rcv.xml \
blks2_wfm_rcv_pll.xml \
blks2_wfm_tx.xml \
@@ -158,6 +157,7 @@ dist_ourdata_DATA = \
gr_probe_avg_mag_sqrd_x.xml \
gr_probe_density_b.xml \
gr_probe_mpsk_snr_c.xml \
+ gr_probe_signal_f.xml \
gr_pwr_squelch_xx.xml \
gr_quadrature_demod_cf.xml \
gr_rational_resampler_base_xxx.xml \
@@ -201,7 +201,6 @@ dist_ourdata_DATA = \
pad_sink.xml \
pad_source.xml \
parameter.xml \
- probe_function.xml \
random_source_x.xml \
root_raised_cosine_filter.xml \
trellis_encoder_xx.xml \
@@ -221,6 +220,7 @@ dist_ourdata_DATA = \
usrp_simple_source_x.xml \
variable.xml \
variable_config.xml \
+ variable_function_probe.xml \
virtual_sink.xml \
virtual_source.xml \
xmlrpc_client.xml \
diff --git a/grc/blocks/blks2_variable_sink_x.xml b/grc/blocks/blks2_variable_sink_x.xml
deleted file mode 100644
index 5709c9f76..000000000
--- a/grc/blocks/blks2_variable_sink_x.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
- Variable Sink
- blks2_variable_sink_x
- from grc_gnuradio import blks2 as grc_blks2
- grc_blks2.variable_sink_$(type.fcn)(
- vlen=$vlen,
- decim=$decim,
- callback=self.set_$(variable()),
-)
- set_decim($decim)
-
- Type
- type
- enum
-
- Complex
- complex
- fcn:c
-
-
- Float
- float
- fcn:f
-
-
- Int
- int
- fcn:i
-
-
- Short
- short
- fcn:s
-
-
- Byte
- byte
- fcn:b
-
-
-
- Variable
- variable
-
- string
-
-
- Decimation
- decim
- 1
- int
-
-
- Vec Length
- vlen
- 1
- int
-
- $vlen > 0
-
- in
- $type
- $vlen
-
-
-Read samples from the input stream and \
-write one in every decimation samples to the variable.
-
-The variable must be the id of an existing variable block.
-
-
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 50c463f55..e9a0c1591 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -26,7 +26,6 @@
Sinks
- blks2_variable_sink_xgr_vector_sink_xgr_null_sinkgr_file_sink
@@ -261,7 +260,7 @@
gr_probe_avg_mag_sqrd_xgr_probe_density_bgr_probe_mpsk_snr_c
- probe_function
+ gr_probe_signal_fUSRP
@@ -276,6 +275,7 @@
Variablesvariablevariable_config
+ variable_function_probeparameter
diff --git a/grc/blocks/gr_probe_avg_mag_sqrd_x.xml b/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
index eb855956a..ac409ad67 100644
--- a/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
+++ b/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
@@ -7,15 +7,10 @@
Probe Avg Mag^2gr_probe_avg_mag_sqrd_x
- from grc_gnuradio import blks2 as grc_blks2
- grc_blks2.probe_avg_mag_sqrd_$(type)(
- threshold=$threshold,
- alpha=$alpha,
- probe_rate=$probe_rate,
-)
+ from gnuradio import gr
+ gr.probe_avg_mag_sqrd_$(type)($threshold, $alpha)set_alpha($alpha)set_threshold($threshold)
- set_probe_rate($probe_rate)Typetype
@@ -43,18 +38,11 @@
1real
-
- Probe Rate
- probe_rate
- 10
- real
-
in$type.input
-
+
+Available functions to probe: level
+
diff --git a/grc/blocks/gr_probe_density_b.xml b/grc/blocks/gr_probe_density_b.xml
index 74d3b0a2b..8e0e2c964 100644
--- a/grc/blocks/gr_probe_density_b.xml
+++ b/grc/blocks/gr_probe_density_b.xml
@@ -7,13 +7,9 @@
Probe Densitygr_probe_density_b
- from grc_gnuradio import blks2 as grc_blks2
- grc_blks2.probe_density_b(
- alpha=$alpha,
- probe_rate=$probe_rate,
-)
+ from gnuradio import gr
+ gr.probe_density_b($alpha)set_alpha($alpha)
- set_probe_rate($probe_rate)Alphaalpha
@@ -30,8 +26,7 @@
inbyte
-
+
+Available functions to probe: density
+
diff --git a/grc/blocks/gr_probe_mpsk_snr_c.xml b/grc/blocks/gr_probe_mpsk_snr_c.xml
index 7f562d2f3..38211b55f 100644
--- a/grc/blocks/gr_probe_mpsk_snr_c.xml
+++ b/grc/blocks/gr_probe_mpsk_snr_c.xml
@@ -7,49 +7,20 @@
Probe MPSK SNRgr_probe_mpsk_snr_c
- from grc_gnuradio import blks2 as grc_blks2
- grc_blks2.probe_mpsk_snr_c(
- type='$type',
- alpha=$alpha,
- probe_rate=$probe_rate,
-)
+ from gnuradio import gr
+ gr.probe_mpsk_snr_c($alpha)set_alpha($alpha)
- set_probe_rate($probe_rate)
-
- Type
- type
- enum
-
- SNR
- snr
-
-
- Signal Mean
- signal_mean
-
-
- Noise Variance
- noise_variance
-
-
Alphaalpha1real
-
- Probe Rate
- probe_rate
- 10
- real
-
incomplex
-
+
+Available functions to probe: signal_mean, noise_variance
+
diff --git a/grc/blocks/gr_probe_signal_f.xml b/grc/blocks/gr_probe_signal_f.xml
new file mode 100644
index 000000000..e1847788a
--- /dev/null
+++ b/grc/blocks/gr_probe_signal_f.xml
@@ -0,0 +1,19 @@
+
+
+
+ Probe Signal
+ gr_probe_signal_f
+ from gnuradio import gr
+ gr.probe_signal_f()
+
+ in
+ float
+
+
+Available functions to probe: level
+
+
diff --git a/grc/blocks/probe_function.xml b/grc/blocks/probe_function.xml
deleted file mode 100644
index ac0b3dcde..000000000
--- a/grc/blocks/probe_function.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
- Probe Function
- probe_function
- from grc_gnuradio import blks2 as grc_blks2
- grc_blks2.probe_function(
- probe_callback=self.$(block_id()).$(function_name()),
- probe_rate=$probe_rate,
-)
- set_probe_rate($probe_rate)
-
- Block ID
- block_id
- my_block_0
- string
-
-
- Function Name
- function_name
- get_number
- string
-
-
- Probe Rate
- probe_rate
- 10
- real
-
-
-
-Polls a function of an arbitrary block and writes the value to the output port. \
-The block id is the id of another block in the flow graph. \
-The function name is the name of a function in the said block. \
-The function should take no arguments and return a floating point or integer number.
-
-
diff --git a/grc/blocks/variable_function_probe.xml b/grc/blocks/variable_function_probe.xml
new file mode 100644
index 000000000..695d2f56c
--- /dev/null
+++ b/grc/blocks/variable_function_probe.xml
@@ -0,0 +1,51 @@
+
+
+
+ Function Probe
+ variable_function_probe
+ import time
+ import threading
+ self.$(id) = $(id) = $value
+ #slurp
+def _$(id)_probe():
+ while True:
+ self.set_$(id)(self.$(block_id()).$(function_name())())
+ time.sleep(1.0/($poll_rate))
+_$(id)_thread = threading.Thread(target=_$(id)_probe)
+_$(id)_thread.daemon = True
+_$(id)_thread.start()
+ self.set_$(id)($value)
+
+ Value
+ value
+ 0
+ raw
+
+
+ Block ID
+ block_id
+ my_block_0
+ string
+
+
+ Function Name
+ function_name
+ get_number
+ string
+
+
+ Poll Rate (Hz)
+ poll_rate
+ 10
+ real
+
+
+Periodically probe a function and set its value to this variable.
+
+To poll a stream for a level, use this with the probe signal block.
+
+
--
cgit
From 4e0fb789e55e26bc16990a257c57494f3d3e6100 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Mon, 7 Mar 2011 11:43:34 -0800
Subject: grc: added function args to probe block and documentation
---
grc/blocks/gr_probe_avg_mag_sqrd_x.xml | 4 +++-
grc/blocks/gr_probe_density_b.xml | 4 +++-
grc/blocks/gr_probe_mpsk_snr_c.xml | 4 +++-
grc/blocks/gr_probe_signal_f.xml | 4 +++-
grc/blocks/variable_function_probe.xml | 18 +++++++++++++++++-
5 files changed, 29 insertions(+), 5 deletions(-)
(limited to 'grc/blocks')
diff --git a/grc/blocks/gr_probe_avg_mag_sqrd_x.xml b/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
index ac409ad67..6bf706ae1 100644
--- a/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
+++ b/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
@@ -43,6 +43,8 @@
$type.input
-Available functions to probe: level
+Available functions to probe: level()
+
+Use with the function probe block.
diff --git a/grc/blocks/gr_probe_density_b.xml b/grc/blocks/gr_probe_density_b.xml
index 8e0e2c964..3a91256aa 100644
--- a/grc/blocks/gr_probe_density_b.xml
+++ b/grc/blocks/gr_probe_density_b.xml
@@ -27,6 +27,8 @@
byte
-Available functions to probe: density
+Available functions to probe: density()
+
+Use with the function probe block.
diff --git a/grc/blocks/gr_probe_mpsk_snr_c.xml b/grc/blocks/gr_probe_mpsk_snr_c.xml
index 38211b55f..5687e867d 100644
--- a/grc/blocks/gr_probe_mpsk_snr_c.xml
+++ b/grc/blocks/gr_probe_mpsk_snr_c.xml
@@ -21,6 +21,8 @@
complex
-Available functions to probe: signal_mean, noise_variance
+Available functions to probe: signal_mean(), noise_variance()
+
+Use with the function probe block.
diff --git a/grc/blocks/gr_probe_signal_f.xml b/grc/blocks/gr_probe_signal_f.xml
index e1847788a..5c38e816f 100644
--- a/grc/blocks/gr_probe_signal_f.xml
+++ b/grc/blocks/gr_probe_signal_f.xml
@@ -14,6 +14,8 @@
float
-Available functions to probe: level
+Available functions to probe: level()
+
+Use with the function probe block.
diff --git a/grc/blocks/variable_function_probe.xml b/grc/blocks/variable_function_probe.xml
index 695d2f56c..49f48fc89 100644
--- a/grc/blocks/variable_function_probe.xml
+++ b/grc/blocks/variable_function_probe.xml
@@ -13,7 +13,7 @@
#slurp
def _$(id)_probe():
while True:
- self.set_$(id)(self.$(block_id()).$(function_name())())
+ self.set_$(id)(self.$(block_id()).$(function_name())($(function_args())))
time.sleep(1.0/($poll_rate))
_$(id)_thread = threading.Thread(target=_$(id)_probe)
_$(id)_thread.daemon = True
@@ -37,6 +37,13 @@ _$(id)_thread.start()get_numberstring
+
+ Function Args
+ function_args
+
+ string
+ #if $function_args() then 'none' else 'part'#
+
Poll Rate (Hz)poll_rate
@@ -46,6 +53,15 @@ _$(id)_thread.start()
Periodically probe a function and set its value to this variable.
+Set the values for block ID, function name, and function args appropriately: \
+Block ID should be the ID of another block in this flow graph. \
+Function name should be the name of a class method on that block. \
+Function args are the parameters passed into that function. \
+For a function with no arguments, leave function args blank.
+
+The values will used literally, and generated into the following form:
+self.block_id.function_name(function_args)
+
To poll a stream for a level, use this with the probe signal block.
--
cgit
From 9121b75d68a0c90deee814edffe387480b52019b Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Mon, 7 Mar 2011 18:40:57 -0800
Subject: qtgui-grc: minor tweaks to the various things
---
grc/blocks/variable_function_probe.xml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'grc/blocks')
diff --git a/grc/blocks/variable_function_probe.xml b/grc/blocks/variable_function_probe.xml
index 49f48fc89..269966c70 100644
--- a/grc/blocks/variable_function_probe.xml
+++ b/grc/blocks/variable_function_probe.xml
@@ -13,7 +13,9 @@
#slurp
def _$(id)_probe():
while True:
- self.set_$(id)(self.$(block_id()).$(function_name())($(function_args())))
+ val = self.$(block_id()).$(function_name())($(function_args()))
+ try: self.set_$(id)(val)
+ except AttributeError, e: pass
time.sleep(1.0/($poll_rate))
_$(id)_thread = threading.Thread(target=_$(id)_probe)
_$(id)_thread.daemon = True
@@ -57,7 +59,8 @@ Set the values for block ID, function name, and function args appropriately: \
Block ID should be the ID of another block in this flow graph. \
Function name should be the name of a class method on that block. \
Function args are the parameters passed into that function. \
-For a function with no arguments, leave function args blank.
+For a function with no arguments, leave function args blank. \
+When passing a string for the function arguments, quote the string literal: '"arg"'.
The values will used literally, and generated into the following form:
self.block_id.function_name(function_args)
--
cgit