summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-11-09 22:30:01 -0500
committerTom Rondeau <trondeau@vt.edu>2012-11-10 14:39:41 -0500
commitcbc7960a4facfc50c3861ca96e51348802d457cc (patch)
treef2b0c58eedc052ca399bde721d6bf054b4e0819b /grc
parent6be5d93ab0e9ec205f1cb72f8d2d60006b08e7f2 (diff)
analog: removed noise and sig sources from core.
Fixed QA code for components that do not use gr-analog.
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/block_tree.xml3
-rw-r--r--grc/blocks/const_source_x.xml52
-rw-r--r--grc/blocks/gr_noise_source_x.xml77
-rw-r--r--grc/blocks/gr_sig_source_x.xml104
4 files changed, 0 insertions, 236 deletions
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml
index e8d9eba4c7..842e32c15e 100644
--- a/grc/blocks/block_tree.xml
+++ b/grc/blocks/block_tree.xml
@@ -8,9 +8,6 @@
<name></name> <!-- Blank for Root Name -->
<cat>
<name>Sources</name>
- <block>const_source_x</block>
- <block>gr_sig_source_x</block>
- <block>gr_noise_source_x</block>
<block>gr_vector_source_x</block>
<block>random_source_x</block>
<block>gr_null_source</block>
diff --git a/grc/blocks/const_source_x.xml b/grc/blocks/const_source_x.xml
deleted file mode 100644
index fe8e56ec4a..0000000000
--- a/grc/blocks/const_source_x.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Constant Source: Custom wrapper
-###################################################
- -->
-<block>
- <name>Constant Source</name>
- <key>const_source_x</key>
- <import>from gnuradio import gr</import>
- <make>gr.sig_source_$(type.fcn)(0, gr.GR_CONST_WAVE, 0, 0, $const)</make>
- <callback>set_offset($const)</callback>
- <param>
- <name>Output Type</name>
- <key>type</key>
- <type>enum</type>
- <option>
- <name>Complex</name>
- <key>complex</key>
- <opt>fcn:c</opt>
- <opt>const_type:complex</opt>
- </option>
- <option>
- <name>Float</name>
- <key>float</key>
- <opt>fcn:f</opt>
- <opt>const_type:real</opt>
- </option>
- <option>
- <name>Int</name>
- <key>int</key>
- <opt>fcn:i</opt>
- <opt>const_type:int</opt>
- </option>
- <option>
- <name>Short</name>
- <key>short</key>
- <opt>fcn:s</opt>
- <opt>const_type:int</opt>
- </option>
- </param>
- <param>
- <name>Constant</name>
- <key>const</key>
- <value>0</value>
- <type>$type.const_type</type>
- </param>
- <source>
- <name>out</name>
- <type>$type</type>
- </source>
-</block>
diff --git a/grc/blocks/gr_noise_source_x.xml b/grc/blocks/gr_noise_source_x.xml
deleted file mode 100644
index 72daaaa209..0000000000
--- a/grc/blocks/gr_noise_source_x.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Noise Source
-###################################################
- -->
-<block>
- <name>Noise Source</name>
- <key>gr_noise_source_x</key>
- <import>from gnuradio import gr</import>
- <make>gr.noise_source_$(type.fcn)($noise_type, $amp, $seed)</make>
- <callback>set_type($noise_type)</callback>
- <callback>set_amplitude($amp)</callback>
- <param>
- <name>Output Type</name>
- <key>type</key>
- <type>enum</type>
- <option>
- <name>Complex</name>
- <key>complex</key>
- <opt>fcn:c</opt>
- </option>
- <option>
- <name>Float</name>
- <key>float</key>
- <opt>fcn:f</opt>
- </option>
- <option>
- <name>Int</name>
- <key>int</key>
- <opt>fcn:i</opt>
- </option>
- <option>
- <name>Short</name>
- <key>short</key>
- <opt>fcn:s</opt>
- </option>
- </param>
- <param>
- <name>Noise Type</name>
- <key>noise_type</key>
- <value>gr.GR_GAUSSIAN</value>
- <type>int</type>
- <option>
- <name>Uniform</name>
- <key>gr.GR_UNIFORM</key>
- </option>
- <option>
- <name>Gaussian</name>
- <key>gr.GR_GAUSSIAN</key>
- </option>
- <option>
- <name>Laplacian</name>
- <key>gr.GR_LAPLACIAN</key>
- </option>
- <option>
- <name>Impulse</name>
- <key>gr.GR_IMPULSE</key>
- </option>
- </param>
- <param>
- <name>Amplitude</name>
- <key>amp</key>
- <value>1</value>
- <type>real</type>
- </param>
- <param>
- <name>Seed</name>
- <key>seed</key>
- <value>0</value>
- <type>int</type>
- </param>
- <source>
- <name>out</name>
- <type>$type</type>
- </source>
-</block>
diff --git a/grc/blocks/gr_sig_source_x.xml b/grc/blocks/gr_sig_source_x.xml
deleted file mode 100644
index 644cf52d0c..0000000000
--- a/grc/blocks/gr_sig_source_x.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Signal Source
-###################################################
- -->
-<block>
- <name>Signal Source</name>
- <key>gr_sig_source_x</key>
- <import>from gnuradio import gr</import>
- <make>gr.sig_source_$(type.fcn)($samp_rate, $waveform, $freq, $amp, $offset)</make>
- <callback>set_sampling_freq($samp_rate)</callback>
- <callback>set_waveform($waveform)</callback>
- <callback>set_frequency($freq)</callback>
- <callback>set_amplitude($amp)</callback>
- <callback>set_offset($offset)</callback>
- <param>
- <name>Output Type</name>
- <key>type</key>
- <type>enum</type>
- <option>
- <name>Complex</name>
- <key>complex</key>
- <opt>fcn:c</opt>
- <opt>offset_type:complex</opt>
- </option>
- <option>
- <name>Float</name>
- <key>float</key>
- <opt>fcn:f</opt>
- <opt>offset_type:real</opt>
- </option>
- <option>
- <name>Int</name>
- <key>int</key>
- <opt>fcn:i</opt>
- <opt>offset_type:int</opt>
- </option>
- <option>
- <name>Short</name>
- <key>short</key>
- <opt>fcn:s</opt>
- <opt>offset_type:int</opt>
- </option>
- </param>
- <param>
- <name>Sample Rate</name>
- <key>samp_rate</key>
- <value>samp_rate</value>
- <type>real</type>
- </param>
- <param>
- <name>Waveform</name>
- <key>waveform</key>
- <value>gr.GR_COS_WAVE</value>
- <type>int</type>
- <option>
- <name>Constant</name>
- <key>gr.GR_CONST_WAVE</key>
- </option>
- <option>
- <name>Sine</name>
- <key>gr.GR_SIN_WAVE</key>
- </option>
- <option>
- <name>Cosine</name>
- <key>gr.GR_COS_WAVE</key>
- </option>
- <option>
- <name>Square</name>
- <key>gr.GR_SQR_WAVE</key>
- </option>
- <option>
- <name>Triangle</name>
- <key>gr.GR_TRI_WAVE</key>
- </option>
- <option>
- <name>Saw Tooth</name>
- <key>gr.GR_SAW_WAVE</key>
- </option>
- </param>
- <param>
- <name>Frequency</name>
- <key>freq</key>
- <value>1000</value>
- <type>real</type>
- </param>
- <param>
- <name>Amplitude</name>
- <key>amp</key>
- <value>1</value>
- <type>real</type>
- </param>
- <param>
- <name>Offset</name>
- <key>offset</key>
- <value>0</value>
- <type>$type.offset_type</type>
- </param>
- <source>
- <name>out</name>
- <type>$type</type>
- </source>
-</block>