diff options
author | Josh Blum | 2010-03-10 14:48:50 -0800 |
---|---|---|
committer | Josh Blum | 2010-03-10 14:48:50 -0800 |
commit | 19d3c0cab37123f8bfd19fdfc576f44b6069300f (patch) | |
tree | 1413206ca21b1d354fe09de1562663d2fb7d30da /gr-uhd/grc | |
parent | 6c79d5158ace300038937688bb11309736926214 (diff) | |
download | gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.tar.gz gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.tar.bz2 gnuradio-19d3c0cab37123f8bfd19fdfc576f44b6069300f.zip |
Added samp rate param and using the simple device from uhd
Diffstat (limited to 'gr-uhd/grc')
-rw-r--r-- | gr-uhd/grc/uhd_simple_sink.xml | 10 | ||||
-rw-r--r-- | gr-uhd/grc/uhd_simple_source.xml | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/gr-uhd/grc/uhd_simple_sink.xml b/gr-uhd/grc/uhd_simple_sink.xml index 1259c38c0..078288e04 100644 --- a/gr-uhd/grc/uhd_simple_sink.xml +++ b/gr-uhd/grc/uhd_simple_sink.xml @@ -9,7 +9,9 @@ <key>uhd_simple_sink</key> <category>UHD</category> <import>from gnuradio import uhd</import> - <make>uhd.simple_sink($args, "$type.type")</make> + <make>uhd.simple_sink($args, "$type.type") +self.$(id).set_samp_rate($samp_rate)</make> + <callback>set_samp_rate($samp_rate)</callback> <param> <name>Input Type</name> <key>type</key> @@ -33,6 +35,12 @@ <value></value> <type>string</type> </param> + <param> + <name>Samp Rate (Sps)</name> + <key>samp_rate</key> + <value>samp_rate</value> + <type>real</type> + </param> <sink> <name>out</name> <type>$type</type> diff --git a/gr-uhd/grc/uhd_simple_source.xml b/gr-uhd/grc/uhd_simple_source.xml index 90bde1cd3..45496b098 100644 --- a/gr-uhd/grc/uhd_simple_source.xml +++ b/gr-uhd/grc/uhd_simple_source.xml @@ -9,7 +9,9 @@ <key>uhd_simple_source</key> <category>UHD</category> <import>from gnuradio import uhd</import> - <make>uhd.simple_source($args, "$type.type")</make> + <make>uhd.simple_source($args, "$type.type") +self.$(id).set_samp_rate($samp_rate)</make> + <callback>set_samp_rate($samp_rate)</callback> <param> <name>Output Type</name> <key>type</key> @@ -33,6 +35,12 @@ <value></value> <type>string</type> </param> + <param> + <name>Samp Rate (Sps)</name> + <key>samp_rate</key> + <value>samp_rate</value> + <type>real</type> + </param> <source> <name>out</name> <type>$type</type> |