3 ###################################################
5 ###################################################
8 <name>USRP Source</name>
9 <key>usrp_simple_source_x</key>
10 <import>from grc_gnuradio import usrp as grc_usrp</import>
11 <make>grc_usrp.simple_source_$(type.fcn)(which=$which, side=$side, rx_ant=$rx_ant#if $hb_filters() then ', no_hb=True' else ''#)
13 self.$(id).set_format(width=$format.width, shift=$format.shift)
15 self.$(id).set_decim_rate($decimation)
16 self.$(id).set_frequency($frequency, verbose=True#slurp
17 #if $lo_offset() != float('inf')
18 , lo_offset=$lo_offset#slurp
21 self.$(id).set_gain($gain)</make>
22 <callback>set_decim_rate($decimation)</callback>
23 <callback>set_frequency($frequency#slurp
24 #if $lo_offset() != float('inf')
25 , lo_offset=$lo_offset#slurp
28 <callback>set_gain($gain)</callback>
30 <name>Output Type</name>
49 <hide>#if $format() then '' else 'part'#</hide>
51 <name>16 Bits (Default)</name>
57 <name>8 Bits, Shift 8</name>
64 <name>Unit Number</name>
70 <name>Decimation</name>
75 <name>Frequency (Hz)</name>
80 <name>LO Offset (Hz)</name>
82 <value>float('inf')</value>
84 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
87 <key>float('inf')</key>
91 <name>Gain (dB)</name>
111 <name>RX Antenna</name>
137 <name>Halfband Filters</name>
138 <key>hb_filters</key>
141 <hide>#if $hb_filters() then 'none' else 'part'#</hide>
156 The USRP source outputs 64 Megasamples per second / decimation.
158 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
159 Flex RF boards use the "TX/RX" and "RX2" settings. \
160 Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
161 All other boards use the "RXA" setting.
163 With the format set to 8 bits and the halfband filters disabled, the USRP can acheive a decimation rate of 4. \
164 Disabling the halfband filters requires a special USRP firmware without halfband filters or TX paths. \
165 For this reason, the USRP cannot transmit with the halfband filters disabled.