summaryrefslogtreecommitdiff
path: root/grc/blocks/usrp_dual_source_x.xml
diff options
context:
space:
mode:
authorJosh Blum2009-09-02 12:07:14 -0700
committerJosh Blum2009-09-02 12:07:14 -0700
commit3d27662913c78f672e3f7d7d1ebc2013ee038387 (patch)
treef3c11865f54cf770fb4d10228a98357d78c6ac57 /grc/blocks/usrp_dual_source_x.xml
parent12b02687d8504adc6efb747a51d3c2fa77a21d63 (diff)
downloadgnuradio-3d27662913c78f672e3f7d7d1ebc2013ee038387.tar.gz
gnuradio-3d27662913c78f672e3f7d7d1ebc2013ee038387.tar.bz2
gnuradio-3d27662913c78f672e3f7d7d1ebc2013ee038387.zip
Modifications to the usrp blocks and wrapper so that the lo offset is set with the lo frequency.
Diffstat (limited to 'grc/blocks/usrp_dual_source_x.xml')
-rw-r--r--grc/blocks/usrp_dual_source_x.xml28
1 files changed, 19 insertions, 9 deletions
diff --git a/grc/blocks/usrp_dual_source_x.xml b/grc/blocks/usrp_dual_source_x.xml
index 740895d42..ad9a860ac 100644
--- a/grc/blocks/usrp_dual_source_x.xml
+++ b/grc/blocks/usrp_dual_source_x.xml
@@ -13,19 +13,29 @@
self.$(id).set_format(width=$format.width, shift=$format.shift)
#end if
self.$(id).set_decim_rate($decimation)
-self.$(id).set_frequency_a($frequency_a, verbose=True)
-self.$(id).set_frequency_b($frequency_b, verbose=True)
-self.$(id).set_gain_a($gain_a)
-self.$(id).set_gain_b($gain_b)
+self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
#if $lo_offset_a() != float('inf')
-self.$(id).set_lo_offset_a($lo_offset_a)
+, lo_offset=$lo_offset_a#slurp
#end if
+)
+self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
#if $lo_offset_b() != float('inf')
-self.$(id).set_lo_offset_b($lo_offset_b)
-#end if</make>
+, lo_offset=$lo_offset_b#slurp
+#end if
+)
+self.$(id).set_gain_a($gain_a)
+self.$(id).set_gain_b($gain_b)</make>
<callback>set_decim_rate($decimation)</callback>
- <callback>set_frequency_a($frequency_a)</callback>
- <callback>set_frequency_b($frequency_b)</callback>
+ <callback>set_frequency_a($frequency_a#slurp
+#if $lo_offset_a() != float('inf')
+, lo_offset=$lo_offset_a#slurp
+#end if
+)</callback>
+ <callback>set_frequency_b($frequency_b#slurp
+#if $lo_offset_b() != float('inf')
+, lo_offset=$lo_offset_b#slurp
+#end if
+)</callback>
<callback>set_gain_a($gain_a)</callback>
<callback>set_gain_b($gain_b)</callback>
<param>