-
-
- 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
From 0644b009591f4c63ed05a8095a0c54c1501bac71 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Wed, 9 Mar 2011 11:44:35 -0800
Subject: audio: moved the grc audio blocks into gr-audio dir
---
grc/blocks/Makefile.am | 2 --
grc/blocks/audio_sink.xml | 85 ---------------------------------------------
grc/blocks/audio_source.xml | 85 ---------------------------------------------
grc/blocks/block_tree.xml | 2 --
4 files changed, 174 deletions(-)
delete mode 100644 grc/blocks/audio_sink.xml
delete mode 100644 grc/blocks/audio_source.xml
(limited to 'grc/blocks')
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am
index 18420a013..c218a59c2 100644
--- a/grc/blocks/Makefile.am
+++ b/grc/blocks/Makefile.am
@@ -24,8 +24,6 @@ include $(top_srcdir)/Makefile.common
ourdatadir = $(grc_blocksdir)
dist_ourdata_DATA = \
block_tree.xml \
- audio_sink.xml \
- audio_source.xml \
band_pass_filter.xml \
band_reject_filter.xml \
blks2_am_demod_cf.xml \
diff --git a/grc/blocks/audio_sink.xml b/grc/blocks/audio_sink.xml
deleted file mode 100644
index 75d583470..000000000
--- a/grc/blocks/audio_sink.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
- Audio Sink
- audio_sink
- from gnuradio import audio
- audio.sink($samp_rate, $device_name, $ok_to_block)
-
- Sample Rate
- samp_rate
- 32000
- int
-
- 16KHz
- 16000
-
-
- 22.05KHz
- 22050
-
-
- 24KHz
- 24000
-
-
- 32KHz
- 32000
-
-
- 44.1KHz
- 44100
-
-
- 48KHz
- 48000
-
-
-
- Device Name
- device_name
-
- string
- #if $device_name() then 'none' else 'part'#
-
-
- OK to Block
- ok_to_block
- True
- enum
- part
-
- Yes
- True
-
-
- No
- False
-
-
-
- Num Inputs
- num_inputs
- 1
- int
-
- 0 < $num_inputs
-
- in
- float
- $num_inputs
-
-
-Not all sampling rates will be supported by your hardware.
-
-Leave the device name blank to choose deafult audio device. \
-ALSA users with audio trouble may try setting the device name to plughw:0,0
-
-The audio sink can have multiple inputs depending upon your hardware. \
-For example, set the inputs to 2 for stereo audio.
-
-
diff --git a/grc/blocks/audio_source.xml b/grc/blocks/audio_source.xml
deleted file mode 100644
index 1f5d1033e..000000000
--- a/grc/blocks/audio_source.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
- Audio Source
- audio_source
- from gnuradio import audio
- audio.source($samp_rate, $device_name, $ok_to_block)
-
- Sample Rate
- samp_rate
- 32000
- int
-
- 16KHz
- 16000
-
-
- 22.05KHz
- 22050
-
-
- 24KHz
- 24000
-
-
- 32KHz
- 32000
-
-
- 44.1KHz
- 44100
-
-
- 48KHz
- 48000
-
-
-
- Device Name
- device_name
-
- string
- #if $device_name() then 'none' else 'part'#
-
-
- OK to Block
- ok_to_block
- True
- enum
- part
-
- Yes
- True
-
-
- No
- False
-
-
-
- Num Outputs
- num_outputs
- 1
- int
-
- 0 < $num_outputs
-
-
-Not all sampling rates will be supported by your hardware.
-
-Leave the device name blank to choose deafult audio device. \
-ALSA users with audio trouble may try setting the device name to plughw:0,0
-
-The audio source can have multiple outputs depending upon your hardware. \
-For example, set the outputs to 2 for stereo audio.
-
-
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 610a88102..82b9e58f3 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -18,7 +18,6 @@
gr_file_sourceblks2_tcp_sourcegr_udp_source
- audio_sourcegr_wavfile_sourcegr_message_sourcepad_source
@@ -32,7 +31,6 @@
gr_file_sinkblks2_tcp_sinkgr_udp_sink
- audio_sinkgr_wavfile_sinkgr_message_sinkpad_sink
--
cgit
From 07bd878bc30f7ab54afc1e2f0055419388c3c992 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Sun, 13 Mar 2011 17:33:33 -0700
Subject: grc: moved all usrp1 and usrp2 stuff out of grc and into gr-usrp*/grc
Moved grc xml files, python wrappers (USRP1 only), probe apps + freedesktop files.
When the gr-usrp and gr-usrp2 directories are removed, grc will not have to change.
Minor change: the freedesktop files are always installed now.
This does not mean that they are installed properly with xdg,
it just means that the runtime can have access to the icons.
---
grc/blocks/Makefile.am | 8 --
grc/blocks/block_tree.xml | 9 --
grc/blocks/usrp2_probe.xml | 33 -----
grc/blocks/usrp2_sink_xxxx.xml | 120 ------------------
grc/blocks/usrp2_source_xxxx.xml | 118 ------------------
grc/blocks/usrp_dual_sink_x.xml | 203 ------------------------------
grc/blocks/usrp_dual_source_x.xml | 242 ------------------------------------
grc/blocks/usrp_probe.xml | 40 ------
grc/blocks/usrp_simple_sink_x.xml | 132 --------------------
grc/blocks/usrp_simple_source_x.xml | 167 -------------------------
10 files changed, 1072 deletions(-)
delete mode 100644 grc/blocks/usrp2_probe.xml
delete mode 100644 grc/blocks/usrp2_sink_xxxx.xml
delete mode 100644 grc/blocks/usrp2_source_xxxx.xml
delete mode 100644 grc/blocks/usrp_dual_sink_x.xml
delete mode 100644 grc/blocks/usrp_dual_source_x.xml
delete mode 100644 grc/blocks/usrp_probe.xml
delete mode 100644 grc/blocks/usrp_simple_sink_x.xml
delete mode 100644 grc/blocks/usrp_simple_source_x.xml
(limited to 'grc/blocks')
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am
index 18420a013..517792453 100644
--- a/grc/blocks/Makefile.am
+++ b/grc/blocks/Makefile.am
@@ -212,14 +212,6 @@ dist_ourdata_DATA = \
trellis_siso_f.xml \
trellis_viterbi_combined_xx.xml \
trellis_viterbi_x.xml \
- usrp2_probe.xml \
- usrp2_sink_xxxx.xml \
- usrp2_source_xxxx.xml \
- usrp_dual_sink_x.xml \
- usrp_dual_source_x.xml \
- usrp_probe.xml \
- usrp_simple_sink_x.xml \
- usrp_simple_source_x.xml \
variable.xml \
variable_check_box.xml \
variable_chooser.xml \
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index 610a88102..e18944bce 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -273,15 +273,6 @@
gr_probe_mpsk_snr_cprobe_function
-
- USRP
- usrp_simple_source_x
- usrp_simple_sink_x
- usrp_dual_source_x
- usrp_dual_sink_x
- usrp2_source_xxxx
- usrp2_sink_xxxx
- Variablesvariable
diff --git a/grc/blocks/usrp2_probe.xml b/grc/blocks/usrp2_probe.xml
deleted file mode 100644
index cc3f9c2fd..000000000
--- a/grc/blocks/usrp2_probe.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- USRP2 Probe
- usrp2_probe
-
-
- Interface
- interface
-
- string
-
-
- Type
- type
- rx
- enum
-
- RX
- rx
-
-
- TX
- tx
-
-
- Press "Probe" to retrieve USRP2 information...
-
diff --git a/grc/blocks/usrp2_sink_xxxx.xml b/grc/blocks/usrp2_sink_xxxx.xml
deleted file mode 100644
index f9fb25361..000000000
--- a/grc/blocks/usrp2_sink_xxxx.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
- USRP2 Sink
- usrp2_sink_xxxx
- from gnuradio import usrp2
- #if not $interface() and not $mac_addr()
-usrp2.sink_$(type.fcn)()
-#elif not $mac_addr()
-usrp2.sink_$(type.fcn)($interface)
-#else
-usrp2.sink_$(type.fcn)($interface, $mac_addr)
-#end if
-self.$(id).set_interp($interpolation)
-#if $lo_offset() != float('inf')
-self.$(id).set_lo_offset($lo_offset)
-#end if
-self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)
-self.$(id).config_mimo($usrp2_clock_src)
- set_interp($interpolation)
- #if $lo_offset() != float('inf')
-self.$(id).set_lo_offset($lo_offset)
-#end if
-self.$(id).set_center_freq($frequency)
- set_gain($gain)
-
- Output Type
- type
- enum
-
- Complex
- complex
- fcn:32fc
- vlen:1
-
-
- Short
- short
- fcn:16sc
- vlen:2
-
-
-
- Interface
- interface
-
- string
-
-
- MAC Addr
- mac_addr
-
- string
-
-
- Interpolation
- interpolation
- int
-
-
- Frequency (Hz)
- frequency
- real
-
-
- LO Offset (Hz)
- lo_offset
- float('inf')
- real
- #if $lo_offset() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain (dB)
- gain
- 0
- real
-
-
- Clock Source
- usrp2_clock_src
- usrp2.MC_WE_DONT_LOCK
- enum
-
- Internal
- usrp2.MC_WE_DONT_LOCK
-
-
- External SMA
- usrp2.MC_WE_LOCK_TO_SMA
-
-
- External MIMO
- usrp2.MC_WE_LOCK_TO_MIMO
-
-
-
- in
- $type
- $type.vlen
-
-
-The USRP2 sink inputs 100 Megasamples per second / interpolation.
-
-Input amplitude should be between 0.0 and 1.0.
-
-To use the default ethernet device, leave interface blank. \
-For systems with only 1 USRP2, you may leave the mac address blank. \
-For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
-
-
diff --git a/grc/blocks/usrp2_source_xxxx.xml b/grc/blocks/usrp2_source_xxxx.xml
deleted file mode 100644
index 584199798..000000000
--- a/grc/blocks/usrp2_source_xxxx.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
-
- USRP2 Source
- usrp2_source_xxxx
- from gnuradio import usrp2
- #if not $interface() and not $mac_addr()
-usrp2.source_$(type.fcn)()
-#elif not $mac_addr()
-usrp2.source_$(type.fcn)($interface)
-#else
-usrp2.source_$(type.fcn)($interface, $mac_addr)
-#end if
-self.$(id).set_decim($decimation)
-#if $lo_offset() != float('inf')
-self.$(id).set_lo_offset($lo_offset)
-#end if
-self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)
-self.$(id).config_mimo($usrp2_clock_src)
- set_decim($decimation)
- #if $lo_offset() != float('inf')
-self.$(id).set_lo_offset($lo_offset)
-#end if
-self.$(id).set_center_freq($frequency)
- set_gain($gain)
-
- Output Type
- type
- enum
-
- Complex
- complex
- fcn:32fc
- vlen:1
-
-
- Short
- short
- fcn:16sc
- vlen:2
-
-
-
- Interface
- interface
-
- string
-
-
- MAC Addr
- mac_addr
-
- string
-
-
- Decimation
- decimation
- int
-
-
- Frequency (Hz)
- frequency
- real
-
-
- LO Offset (Hz)
- lo_offset
- float('inf')
- real
- #if $lo_offset() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain (dB)
- gain
- 0
- real
-
-
- Clock Source
- usrp2_clock_src
- usrp2.MC_WE_DONT_LOCK
- enum
-
- Internal
- usrp2.MC_WE_DONT_LOCK
-
-
- External SMA
- usrp2.MC_WE_LOCK_TO_SMA
-
-
- External MIMO
- usrp2.MC_WE_LOCK_TO_MIMO
-
-
-
-
-The USRP2 source outputs 100 Megasamples per second / decimation.
-
-To use the default ethernet device, leave interface blank. \
-For systems with only 1 USRP2, you may leave the mac address blank. \
-For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
-
-
diff --git a/grc/blocks/usrp_dual_sink_x.xml b/grc/blocks/usrp_dual_sink_x.xml
deleted file mode 100644
index 4539b62f9..000000000
--- a/grc/blocks/usrp_dual_sink_x.xml
+++ /dev/null
@@ -1,203 +0,0 @@
-
-
-
- USRP Dual Sink
- usrp_dual_sink_x
- from grc_gnuradio import usrp as grc_usrp
- grc_usrp.dual_sink_$(type.fcn)(which=$which)
-self.$(id).set_interp_rate($interpolation)
-self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
-#if $lo_offset_a() != float('inf')
-, lo_offset=$lo_offset_a#slurp
-#end if
-)
-self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
-#if $lo_offset_b() != float('inf')
-, lo_offset=$lo_offset_b#slurp
-#end if
-)
-self.$(id).set_gain_a($gain_a)
-self.$(id).set_gain_b($gain_b)
-##################################################
-## Flex RF A
-##################################################
-#if $transmit_a.tx_enb
-self.$(id).set_enable_a(True)
-#end if
-#if $transmit_a.auto_tr
-self.$(id).set_auto_tr_a(True)
-#end if
-##################################################
-## Flex RF B
-##################################################
-#if $transmit_b.tx_enb
-self.$(id).set_enable_b(True)
-#end if
-#if $transmit_b.auto_tr
-self.$(id).set_auto_tr_b(True)
-#end if
- set_interp_rate($interpolation)
- set_frequency_a($frequency_a#slurp
-#if $lo_offset_a() != float('inf')
-, lo_offset=$lo_offset_a#slurp
-#end if
-)
- set_frequency_b($frequency_b#slurp
-#if $lo_offset_b() != float('inf')
-, lo_offset=$lo_offset_b#slurp
-#end if
-)
- set_gain_a($gain_a)
- set_gain_b($gain_b)
-
- Input Type
- type
- enum
-
- Complex
- complex
- fcn:c
-
-
- Short
- short
- fcn:s
-
-
-
- Unit Number
- which
- 0
- int
-
-
- Interpolation
- interpolation
- int
-
-
- Frequency A (Hz)
- frequency_a
- real
-
-
- Frequency B (Hz)
- frequency_b
- real
-
-
- LO Offset A (Hz)
- lo_offset_a
- float('inf')
- real
- #if $lo_offset_a() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- LO Offset B (Hz)
- lo_offset_b
- float('inf')
- real
- #if $lo_offset_b() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain A (dB)
- gain_a
- 0
- real
-
-
- Gain B (dB)
- gain_b
- 0
- real
-
-
-
- Transmit A
- transmit_a
-
- enum
- #if $transmit_a.tx_enb then 'none' else 'part'#
-
- Unconfigured
-
- tx_enb:
- auto_tr:
-
-
- Enable
- tx_enb
- tx_enb:1
- auto_tr:
-
-
- Auto T/R
- auto_tr
- tx_enb:1
- auto_tr:1
-
-
-
-
- Transmit B
- transmit_b
-
- enum
- #if $transmit_b.tx_enb then 'none' else 'part'#
-
- Unconfigured
-
- tx_enb:
- auto_tr:
-
-
- Enable
- tx_enb
- tx_enb:1
- auto_tr:
-
-
- Auto T/R
- auto_tr
- tx_enb:1
- auto_tr:1
-
-
-
- Ain
- $type
-
-
- Bin
- $type
-
-
-The USRP sink inputs 128 Megasamples per second / interpolation.
-
-Input amplitude should be between 0 and 32767.
-
-Flex RF boards only: The "Transmit Setting" must be configured. \
-When set to "Enable" the transmitter is always on. \
-When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.
-
-
diff --git a/grc/blocks/usrp_dual_source_x.xml b/grc/blocks/usrp_dual_source_x.xml
deleted file mode 100644
index 07d3174bb..000000000
--- a/grc/blocks/usrp_dual_source_x.xml
+++ /dev/null
@@ -1,242 +0,0 @@
-
-
-
- USRP Dual Source
- usrp_dual_source_x
- from grc_gnuradio import usrp as grc_usrp
- grc_usrp.dual_source_$(type.fcn)(
- which=$which,
- rx_ant_a=$rx_ant_a, rx_ant_b=$rx_ant_b,
- rx_source_a=$rx_source_a, rx_source_b=$rx_source_b,
-)
-#if $format()
-self.$(id).set_format(width=$format.width, shift=$format.shift)
-#end if
-self.$(id).set_decim_rate($decimation)
-self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
-#if $lo_offset_a() != float('inf')
-, lo_offset=$lo_offset_a#slurp
-#end if
-)
-self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
-#if $lo_offset_b() != float('inf')
-, lo_offset=$lo_offset_b#slurp
-#end if
-)
-self.$(id).set_gain_a($gain_a)
-self.$(id).set_gain_b($gain_b)
- set_decim_rate($decimation)
- set_frequency_a($frequency_a#slurp
-#if $lo_offset_a() != float('inf')
-, lo_offset=$lo_offset_a#slurp
-#end if
-)
- set_frequency_b($frequency_b#slurp
-#if $lo_offset_b() != float('inf')
-, lo_offset=$lo_offset_b#slurp
-#end if
-)
- set_gain_a($gain_a)
- set_gain_b($gain_b)
-
- Output Type
- type
- enum
-
- Complex
- complex
- fcn:c
-
-
- Short
- short
- fcn:s
-
-
-
- Format
- format
-
- enum
- #if $format() then '' else 'part'#
-
- 16 Bits (Default)
-
- width:16
- shift:0
-
-
- 8 Bits, Shift 8
- w8_s8
- width:8
- shift:8
-
-
-
- Unit Number
- which
- 0
- int
-
-
- Decimation
- decimation
- int
-
-
- Frequency A (Hz)
- frequency_a
- real
-
-
- Frequency B (Hz)
- frequency_b
- real
-
-
- LO Offset A (Hz)
- lo_offset_a
- float('inf')
- real
- #if $lo_offset_a() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- LO Offset B (Hz)
- lo_offset_b
- float('inf')
- real
- #if $lo_offset_b() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain A (dB)
- gain_a
- 0
- real
-
-
- Gain B (dB)
- gain_b
- 0
- real
-
-
-
- RX Antenna A
- rx_ant_a
- RXA
- string
-
- RXA
- RXA
-
-
- RXB
- RXB
-
-
- RXAB
- RXAB
-
-
- TX/RX
- TX/RX
-
-
- RX2
- RX2
-
-
-
-
- RX Antenna B
- rx_ant_b
- RXA
- string
-
- RXA
- RXA
-
-
- RXB
- RXB
-
-
- RXAB
- RXAB
-
-
- TX/RX
- TX/RX
-
-
- RX2
- RX2
-
-
-
- RX Source A
- rx_source_a
- A
- string
- #if $rx_source_a() == 'A' then 'part' else 'none'#
-
- Side A
- A
-
-
- Side B
- B
-
-
-
- RX Source B
- rx_source_b
- B
- string
- #if $rx_source_b() == 'B' then 'part' else 'none'#
-
- Side A
- A
-
-
- Side B
- B
-
-
-
-
-
-The USRP source outputs 64 Megasamples per second / decimation.
-
-The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
-Flex RF boards use the "TX/RX" and "RX2" settings. \
-Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
-All other boards use the "RXA" setting.
-
-
diff --git a/grc/blocks/usrp_probe.xml b/grc/blocks/usrp_probe.xml
deleted file mode 100644
index ee207c28d..000000000
--- a/grc/blocks/usrp_probe.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
- USRP Probe
- usrp_probe
-
-
- Unit Number
- which
- 0
- int
-
-
- Daughter Board
- dboard
- enum
-
- RX A
- rx_a
-
-
- RX B
- rx_b
-
-
- TX A
- tx_a
-
-
- TX B
- tx_b
-
-
- Press "Probe" to retrieve USRP information...
-
diff --git a/grc/blocks/usrp_simple_sink_x.xml b/grc/blocks/usrp_simple_sink_x.xml
deleted file mode 100644
index b52cd4880..000000000
--- a/grc/blocks/usrp_simple_sink_x.xml
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
- USRP Sink
- usrp_simple_sink_x
- from grc_gnuradio import usrp as grc_usrp
- grc_usrp.simple_sink_$(type.fcn)(which=$which, side=$side)
-self.$(id).set_interp_rate($interpolation)
-self.$(id).set_frequency($frequency, verbose=True#slurp
-#if $lo_offset() != float('inf')
-, lo_offset=$lo_offset#slurp
-#end if
-)
-self.$(id).set_gain($gain)
-#if $transmit.tx_enb
-self.$(id).set_enable(True)
-#end if
-#if $transmit.auto_tr
-self.$(id).set_auto_tr(True)
-#end if
- set_interp_rate($interpolation)
- set_frequency($frequency#slurp
-#if $lo_offset() != float('inf')
-, lo_offset=$lo_offset#slurp
-#end if
-)
- set_gain($gain)
-
- Input Type
- type
- enum
-
- Complex
- complex
- fcn:c
-
-
- Short
- short
- fcn:s
-
-
-
- Unit Number
- which
- 0
- int
-
-
- Interpolation
- interpolation
- int
-
-
- Frequency (Hz)
- frequency
- real
-
-
- LO Offset (Hz)
- lo_offset
- float('inf')
- real
- #if $lo_offset() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain (dB)
- gain
- 0
- real
-
-
- Side
- side
- A
- string
-
-
-
- in
- $type
-
-
-The USRP sink inputs 128 Megasamples per second / interpolation.
-
-Input amplitude should be between 0 and 32767.
-
-Flex RF boards only: The "Transmit Setting" must be configured. \
-When set to "Enable" the transmitter is always on. \
-When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.
-
-
diff --git a/grc/blocks/usrp_simple_source_x.xml b/grc/blocks/usrp_simple_source_x.xml
deleted file mode 100644
index 7fcc7a22c..000000000
--- a/grc/blocks/usrp_simple_source_x.xml
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
- USRP Source
- usrp_simple_source_x
- from grc_gnuradio import usrp as grc_usrp
- grc_usrp.simple_source_$(type.fcn)(which=$which, side=$side, rx_ant=$rx_ant#if $hb_filters() then ', no_hb=True' else ''#)
-#if $format()
-self.$(id).set_format(width=$format.width, shift=$format.shift)
-#end if
-self.$(id).set_decim_rate($decimation)
-self.$(id).set_frequency($frequency, verbose=True#slurp
-#if $lo_offset() != float('inf')
-, lo_offset=$lo_offset#slurp
-#end if
-)
-self.$(id).set_gain($gain)
- set_decim_rate($decimation)
- set_frequency($frequency#slurp
-#if $lo_offset() != float('inf')
-, lo_offset=$lo_offset#slurp
-#end if
-)
- set_gain($gain)
-
- Output Type
- type
- enum
-
- Complex
- complex
- fcn:c
-
-
- Short
- short
- fcn:s
-
-
-
- Format
- format
-
- enum
- #if $format() then '' else 'part'#
-
- 16 Bits (Default)
-
- width:16
- shift:0
-
-
- 8 Bits, Shift 8
- w8_s8
- width:8
- shift:8
-
-
-
- Unit Number
- which
- 0
- int
-
-
- Decimation
- decimation
- int
-
-
- Frequency (Hz)
- frequency
- real
-
-
- LO Offset (Hz)
- lo_offset
- float('inf')
- real
- #if $lo_offset() == float('inf') then 'part' else 'none'#
-
- Default
- float('inf')
-
-
-
- Gain (dB)
- gain
- 0
- real
-
-
- Side
- side
- A
- string
-
-
-
-
-The USRP source outputs 64 Megasamples per second / decimation.
-
-The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
-Flex RF boards use the "TX/RX" and "RX2" settings. \
-Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
-All other boards use the "RXA" setting.
-
-With the format set to 8 bits and the halfband filters disabled, the USRP can acheive a decimation rate of 4. \
-Disabling the halfband filters requires a special USRP firmware without halfband filters or TX paths. \
-For this reason, the USRP cannot transmit with the halfband filters disabled.
-
-
--
cgit