From: jblum Date: Tue, 5 May 2009 23:45:16 +0000 (+0000) Subject: lo offset for usrp2 wrappers X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7fd0afc85027948ae5303763ba4ad7e61a370b54;p=debian%2Fgnuradio lo offset for usrp2 wrappers git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10970 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml index 264ed4f2..279f6576 100644 --- a/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml +++ b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml @@ -17,7 +17,11 @@ usrp2.sink_$(type.fcn)($interface, $mac_addr) #end if self.$(id).set_interp($interpolation) self.$(id).set_center_freq($frequency) -self.$(id).set_gain($gain) +self.$(id).set_gain($gain) +#if $lo_offset() != float('inf') +self.$(id).set_lo_offset($lo_offset) +#end if + set_lo_offset($lo_offset) set_interp($interpolation) set_center_freq($frequency) set_gain($gain) @@ -54,12 +58,23 @@ self.$(id).set_gain($gain) int - Frequency + Frequency (Hz) frequency real - Gain + LO Offset (Hz) + lo_offset + float('inf') + real + #if $lo_offset() == float('inf') then 'part' else 'none'# + + + + Gain (dB) gain real @@ -70,6 +85,8 @@ self.$(id).set_gain($gain) The USRP2 sink inputs 100 Megasamples per second / interpolation. +Input amplitude should be between 0.0 and 1.0. + To use the default ethernet device, leave interface blank. \ For systems with only 1 USRP2, you may leave the mac address blank. \ For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx. diff --git a/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml b/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml index 54bea7a4..5ec45aeb 100644 --- a/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml +++ b/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml @@ -17,7 +17,11 @@ usrp2.source_$(type.fcn)($interface, $mac_addr) #end if self.$(id).set_decim($decimation) self.$(id).set_center_freq($frequency) -self.$(id).set_gain($gain) +self.$(id).set_gain($gain) +#if $lo_offset() != float('inf') +self.$(id).set_lo_offset($lo_offset) +#end if + set_lo_offset($lo_offset) set_decim($decimation) set_center_freq($frequency) set_gain($gain) @@ -54,12 +58,23 @@ self.$(id).set_gain($gain) int - Frequency + Frequency (Hz) frequency real + + LO Offset (Hz) + lo_offset + float('inf') + real + #if $lo_offset() == float('inf') then 'part' else 'none'# + + - Gain + Gain (dB) gain real