summaryrefslogtreecommitdiff
path: root/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
diff options
context:
space:
mode:
authorTom Rondeau2012-11-05 22:44:21 -0500
committerTom Rondeau2012-11-05 22:44:21 -0500
commit1db78387c584638db2613655d4ddcb03d03f4318 (patch)
tree93cf8a6b29625311fac7324270b8db59f333c402 /gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
parentcc8620141d9c20e9dda84707db77a3ebf4d2ce5f (diff)
downloadgnuradio-1db78387c584638db2613655d4ddcb03d03f4318.tar.gz
gnuradio-1db78387c584638db2613655d4ddcb03d03f4318.tar.bz2
gnuradio-1db78387c584638db2613655d4ddcb03d03f4318.zip
analog: adding probe_avg_mag_sqrd GRC block.
Diffstat (limited to 'gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml')
-rw-r--r--gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml b/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
new file mode 100644
index 000000000..b05ac6d0d
--- /dev/null
+++ b/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Probe Average Magnitude Squared
+###################################################
+ -->
+<block>
+ <name>Probe Avg Mag^2</name>
+ <key>analog_probe_avg_mag_sqrd_x</key>
+ <import>from gnuradio import analog</import>
+ <make>analog.probe_avg_mag_sqrd_$(type)($threshold, $alpha)</make>
+ <callback>set_alpha($alpha)</callback>
+ <callback>set_threshold($threshold)</callback>
+ <param>
+ <name>Type</name>
+ <key>type</key>
+ <type>enum</type>
+ <option>
+ <name>Complex</name>
+ <key>c</key>
+ <opt>input:complex</opt>
+ </option>
+ <option>
+ <name>Float</name>
+ <key>f</key>
+ <opt>input:float</opt>
+ </option>
+ </param>
+ <param>
+ <name>Threshold (dB)</name>
+ <key>threshold</key>
+ <value>0</value>
+ <type>real</type>
+ </param>
+ <param>
+ <name>Alpha</name>
+ <key>alpha</key>
+ <value>1</value>
+ <type>real</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>$type.input</type>
+ </sink>
+ <doc>
+Available functions to probe: level()
+
+Use with the function probe block.
+ </doc>
+</block>