diff options
author | Josh Blum | 2010-09-22 17:40:02 -0700 |
---|---|---|
committer | Josh Blum | 2010-09-22 17:40:02 -0700 |
commit | 2831c9313d09685090cea531a177469b57792c9a (patch) | |
tree | 6d770f8d9013b611ca6d34171ccecef9061f2772 /gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py | |
parent | 385eafd8559b90a027604dd5c0ab734bea54f6d8 (diff) | |
download | gnuradio-2831c9313d09685090cea531a177469b57792c9a.tar.gz gnuradio-2831c9313d09685090cea531a177469b57792c9a.tar.bz2 gnuradio-2831c9313d09685090cea531a177469b57792c9a.zip |
uhd: tweaks and fixes, single wrapper working
Diffstat (limited to 'gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py')
-rwxr-xr-x | gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py b/gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py index 0d13a8391..1ad3c0927 100755 --- a/gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py +++ b/gr-uhd/grc/gen_uhd_single_usrp_blocks_xml.py @@ -22,11 +22,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA MAIN_TMPL = """\ <?xml version="1.0"?> <block> - <name>UHD Single USRP $sourk.title()</name> + <name>UHD: Single USRP $sourk.title()</name> <key>uhd_single_usrp_$(sourk)</key> <category>UHD</category> <import>from gnuradio import uhd</import> - <make>uhd.single_usrp_$(sourk)(\$nchan, \$dev_addr, uhd.io_type_t.\$type.type) + <make>uhd.single_usrp_$(sourk)(\$dev_addr, uhd.io_type_t.\$type.type) self.\$(id).set_subdev_spec(\$sd_spec) self.\$(id).set_samp_rate(\$samp_rate) #for $n in range($max_nchan) @@ -86,6 +86,13 @@ self.\$(id).set_antenna(\$ant$(n), $n) <key>dev_addr</key> <value>addr=192.168.10.2</value> <type>string</type> + <hide> + \#if \$dev_addr() + none + \#else + part + \#end if + </hide> </param> <param> <name>Subdev Spec</name> |