USRP2 Sourceusrp2_source_xxxxUSRPfrom gnuradio import usrp2#if not $interface() and not $mac_addr()
usrp2.source_$(type.fcn)()
#elif not $mac_addr()
usrp2.source_$(type.fcn)($interface)
#else
usrp2.source_$(type.fcn)($interface, $mac_addr)
#end if
self.$(id).set_decim($decimation)
#if $lo_offset() != float('inf')
self.$(id).set_lo_offset($lo_offset)
#end if
self.$(id).set_center_freq($frequency)
self.$(id).set_gain($gain)
self.$(id).config_mimo($usrp2_clock_src)set_decim($decimation)#if $lo_offset() != float('inf')
self.$(id).set_lo_offset($lo_offset)
#end if
self.$(id).set_center_freq($frequency)set_gain($gain)Output TypetypeenumInterfaceinterfacestringMAC Addrmac_addrstringDecimationdecimationintFrequency (Hz)frequencyrealLO Offset (Hz)lo_offsetfloat('inf')real#if $lo_offset() == float('inf') then 'part' else 'none'#Gain (dB)gain0realClock Sourceusrp2_clock_srcusrp2.MC_WE_DONT_LOCKenum
The USRP2 source outputs 100 Megasamples per second / decimation.
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.