diff options
author | Josh Blum | 2009-09-02 12:07:14 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-02 12:07:14 -0700 |
commit | 3d27662913c78f672e3f7d7d1ebc2013ee038387 (patch) | |
tree | f3c11865f54cf770fb4d10228a98357d78c6ac57 /grc/blocks/usrp_simple_source_x.xml | |
parent | 12b02687d8504adc6efb747a51d3c2fa77a21d63 (diff) | |
download | gnuradio-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_simple_source_x.xml')
-rw-r--r-- | grc/blocks/usrp_simple_source_x.xml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/grc/blocks/usrp_simple_source_x.xml b/grc/blocks/usrp_simple_source_x.xml index 1a777bd63..7fcc7a22c 100644 --- a/grc/blocks/usrp_simple_source_x.xml +++ b/grc/blocks/usrp_simple_source_x.xml @@ -13,14 +13,18 @@ self.$(id).set_format(width=$format.width, shift=$format.shift) #end if self.$(id).set_decim_rate($decimation) -self.$(id).set_frequency($frequency, verbose=True) -self.$(id).set_gain($gain) +self.$(id).set_frequency($frequency, verbose=True#slurp #if $lo_offset() != float('inf') -self.$(id).set_lo_offset($lo_offset) -#end if</make> - <callback>set_lo_offset($lo_offset)</callback> +, lo_offset=$lo_offset#slurp +#end if +) +self.$(id).set_gain($gain)</make> <callback>set_decim_rate($decimation)</callback> - <callback>set_frequency($frequency)</callback> + <callback>set_frequency($frequency#slurp +#if $lo_offset() != float('inf') +, lo_offset=$lo_offset#slurp +#end if +)</callback> <callback>set_gain($gain)</callback> <param> <name>Output Type</name> |