3 ###################################################
5 ## Note: the center freq must be set after the lo offset
6 ###################################################
9 <name>USRP2 Source</name>
10 <key>usrp2_source_xxxx</key>
11 <import>from gnuradio import usrp2</import>
12 <make>#if not $interface() and not $mac_addr()
13 usrp2.source_$(type.fcn)()
15 usrp2.source_$(type.fcn)($interface)
17 usrp2.source_$(type.fcn)($interface, $mac_addr)
19 self.$(id).set_decim($decimation)
20 #if $lo_offset() != float('inf')
21 self.$(id).set_lo_offset($lo_offset)
23 self.$(id).set_center_freq($frequency)
24 self.$(id).set_gain($gain)
25 self.$(id).config_mimo($usrp2_clock_src)</make>
26 <callback>set_decim($decimation)</callback>
27 <callback>#if $lo_offset() != float('inf')
28 self.$(id).set_lo_offset($lo_offset)
30 self.$(id).set_center_freq($frequency)</callback>
31 <callback>set_gain($gain)</callback>
33 <name>Output Type</name>
50 <name>Interface</name>
62 <name>Decimation</name>
67 <name>Frequency (Hz)</name>
72 <name>LO Offset (Hz)</name>
74 <value>float('inf')</value>
76 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
79 <key>float('inf')</key>
83 <name>Gain (dB)</name>
89 <name>Clock Source</name>
90 <key>usrp2_clock_src</key>
91 <value>usrp2.MC_WE_DONT_LOCK</value>
95 <key>usrp2.MC_WE_DONT_LOCK</key>
98 <name>External SMA</name>
99 <key>usrp2.MC_WE_LOCK_TO_SMA</key>
102 <name>External MIMO</name>
103 <key>usrp2.MC_WE_LOCK_TO_MIMO</key>
109 <vlen>$type.vlen</vlen>
112 The USRP2 source outputs 100 Megasamples per second / decimation.
114 To use the default ethernet device, leave interface blank. \
115 For systems with only 1 USRP2, you may leave the mac address blank. \
116 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.