3 ###################################################
5 ###################################################
8 <name>USRP2 Source</name>
9 <key>usrp2_source_xxxx</key>
10 <import>from gnuradio import usrp2</import>
11 <make>#if not $interface() and not $mac_addr()
12 usrp2.source_$(type.fcn)()
14 usrp2.source_$(type.fcn)($interface)
16 usrp2.source_$(type.fcn)($interface, $mac_addr)
18 self.$(id).set_decim($decimation)
19 self.$(id).set_center_freq($frequency)
20 self.$(id).set_gain($gain)
21 #if $lo_offset() != float('inf')
22 self.$(id).set_lo_offset($lo_offset)
24 <callback>set_lo_offset($lo_offset)</callback>
25 <callback>set_decim($decimation)</callback>
26 <callback>set_center_freq($frequency)</callback>
27 <callback>set_gain($gain)</callback>
29 <name>Output Type</name>
44 <name>Interface</name>
56 <name>Decimation</name>
61 <name>Frequency (Hz)</name>
66 <name>LO Offset (Hz)</name>
68 <value>float('inf')</value>
70 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
73 <key>float('inf')</key>
77 <name>Gain (dB)</name>
87 The USRP2 source outputs 100 Megasamples per second / decimation.
89 To use the default ethernet device, leave interface blank. \
90 For systems with only 1 USRP2, you may leave the mac address blank. \
91 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.