3 ###################################################
5 ###################################################
8 <name>USRP Dual Source</name>
9 <key>usrp_dual_source_x</key>
10 <import>from grc_gnuradio import usrp as grc_usrp</import>
11 <make>grc_usrp.dual_source_$(type.fcn)(which=$which, rx_ant_a=$rx_ant_a, rx_ant_b=$rx_ant_b)
13 self.$(id).set_format(width=$format.width, shift=$format.shift)
15 self.$(id).set_decim_rate($decimation)
16 self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
17 #if $lo_offset_a() != float('inf')
18 , lo_offset=$lo_offset_a#slurp
21 self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
22 #if $lo_offset_b() != float('inf')
23 , lo_offset=$lo_offset_b#slurp
26 self.$(id).set_gain_a($gain_a)
27 self.$(id).set_gain_b($gain_b)</make>
28 <callback>set_decim_rate($decimation)</callback>
29 <callback>set_frequency_a($frequency_a#slurp
30 #if $lo_offset_a() != float('inf')
31 , lo_offset=$lo_offset_a#slurp
34 <callback>set_frequency_b($frequency_b#slurp
35 #if $lo_offset_b() != float('inf')
36 , lo_offset=$lo_offset_b#slurp
39 <callback>set_gain_a($gain_a)</callback>
40 <callback>set_gain_b($gain_b)</callback>
42 <name>Output Type</name>
61 <hide>#if $format() then '' else 'part'#</hide>
63 <name>16 Bits (Default)</name>
69 <name>8 Bits, Shift 8</name>
76 <name>Unit Number</name>
82 <name>Decimation</name>
87 <name>Frequency A (Hz)</name>
88 <key>frequency_a</key>
92 <name>Frequency B (Hz)</name>
93 <key>frequency_b</key>
97 <name>LO Offset A (Hz)</name>
98 <key>lo_offset_a</key>
99 <value>float('inf')</value>
101 <hide>#if $lo_offset_a() == float('inf') then 'part' else 'none'#</hide>
104 <key>float('inf')</key>
108 <name>LO Offset B (Hz)</name>
109 <key>lo_offset_b</key>
110 <value>float('inf')</value>
112 <hide>#if $lo_offset_b() == float('inf') then 'part' else 'none'#</hide>
115 <key>float('inf')</key>
119 <name>Gain A (dB)</name>
125 <name>Gain B (dB)</name>
131 ###################################################
133 ###################################################
136 <name>RX Antenna A</name>
162 ###################################################
164 ###################################################
167 <name>RX Antenna B</name>
201 The USRP source outputs 64 Megasamples per second / decimation.
203 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
204 Flex RF boards use the "TX/RX" and "RX2" settings. \
205 Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
206 All other boards use the "RXA" setting.