aboutsummaryrefslogtreecommitdiffstats
path: root/grc
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2012-04-28 20:20:07 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2012-04-28 20:20:07 +0200
commit0216d1022be821fe410f404c2345286c46f1a09f (patch)
tree8bcfd620a55faa88b1f660bb13cb3ed99baec589 /grc
parentc1c0c2f212c5205cf9e607a2172396df77f8031e (diff)
update GRC files for multichannel source
Diffstat (limited to 'grc')
-rw-r--r--grc/gen_osmosdr_blocks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
index 2b0fb21..7150350 100644
--- a/grc/gen_osmosdr_blocks.py
+++ b/grc/gen_osmosdr_blocks.py
@@ -25,7 +25,7 @@ MAIN_TMPL = """\
<key>osmosdr_$(sourk)_c</key>
<throttle>1</throttle>
<import>import osmosdr</import>
- <make>osmosdr.$(sourk)_c( args='nchan=' + str(\$nchan) + ' ' + \$args )
+ <make>osmosdr.$(sourk)_c( args="nchan=" + str(\$nchan) + " " + \$args )
self.\$(id).set_sample_rate(\$sample_rate)
#for $n in range($max_nchan)
\#if \$nchan() > $n
@@ -108,8 +108,8 @@ of devices. If left blank, the first device found will be used.
Examples:
fcd=0 fcd=1 fcd=2 ...
rtl=0 rtl=1 rtl=2 ...
- uhd=0|name,mcr=52e6,chans=2 ...
- osmo=0|name,mcr=64e6,chans=5,port=/dev/ttyUSB0 ...
+ uhd=0|name,mcr=52e6,nchan=2,subdev='\\\\'B:0 A:0'\\\\' ...
+ osmosdr=0|name,mcr=64e6,nchan=5,port=/dev/ttyUSB0 ...
Num Channels:
Selects the total number of channels in this multi-device configuration.