3 ###################################################
5 ###################################################
8 <name>USRP Dual Sink</name>
9 <key>usrp_dual_sink_x</key>
10 <import>from grc_gnuradio import usrp as grc_usrp</import>
11 <make>grc_usrp.dual_sink_$(type.fcn)(which=$which)
12 self.$(id).set_interp_rate($interpolation)
13 self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
14 #if $lo_offset_a() != float('inf')
15 , lo_offset=$lo_offset_a#slurp
18 self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
19 #if $lo_offset_b() != float('inf')
20 , lo_offset=$lo_offset_b#slurp
23 self.$(id).set_gain_a($gain_a)
24 self.$(id).set_gain_b($gain_b)
25 ##################################################
27 ##################################################
28 #if $transmit_a.tx_enb
29 self.$(id).set_enable_a(True)
31 #if $transmit_a.auto_tr
32 self.$(id).set_auto_tr_a(True)
34 ##################################################
36 ##################################################
37 #if $transmit_b.tx_enb
38 self.$(id).set_enable_b(True)
40 #if $transmit_b.auto_tr
41 self.$(id).set_auto_tr_b(True)
43 <callback>set_interp_rate($interpolation)</callback>
44 <callback>set_frequency_a($frequency_a#slurp
45 #if $lo_offset_a() != float('inf')
46 , lo_offset=$lo_offset_a#slurp
49 <callback>set_frequency_b($frequency_b#slurp
50 #if $lo_offset_b() != float('inf')
51 , lo_offset=$lo_offset_b#slurp
54 <callback>set_gain_a($gain_a)</callback>
55 <callback>set_gain_b($gain_b)</callback>
57 <name>Input Type</name>
72 <name>Unit Number</name>
78 <name>Interpolation</name>
79 <key>interpolation</key>
83 <name>Frequency A (Hz)</name>
84 <key>frequency_a</key>
88 <name>Frequency B (Hz)</name>
89 <key>frequency_b</key>
93 <name>LO Offset A (Hz)</name>
94 <key>lo_offset_a</key>
95 <value>float('inf')</value>
97 <hide>#if $lo_offset_a() == float('inf') then 'part' else 'none'#</hide>
100 <key>float('inf')</key>
104 <name>LO Offset B (Hz)</name>
105 <key>lo_offset_b</key>
106 <value>float('inf')</value>
108 <hide>#if $lo_offset_b() == float('inf') then 'part' else 'none'#</hide>
111 <key>float('inf')</key>
115 <name>Gain A (dB)</name>
121 <name>Gain B (dB)</name>
127 ###################################################
129 ###################################################
132 <name>Transmit A</name>
133 <key>transmit_a</key>
136 <hide>#if $transmit_a.tx_enb then 'none' else 'part'#</hide>
138 <name>Unconfigured</name>
150 <name>Auto T/R</name>
157 ###################################################
159 ###################################################
162 <name>Transmit B</name>
163 <key>transmit_b</key>
166 <hide>#if $transmit_b.tx_enb then 'none' else 'part'#</hide>
168 <name>Unconfigured</name>
180 <name>Auto T/R</name>
195 The USRP sink inputs 128 Megasamples per second / interpolation.
197 Input amplitude should be between 0 and 32767.
199 Flex RF boards only: The "Transmit Setting" must be configured. \
200 When set to "Enable" the transmitter is always on. \
201 When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.