USRP Dual Sinkusrp_dual_sink_xfrom grc_gnuradio import usrp as grc_usrpgrc_usrp.dual_sink_$(type.fcn)(which=$which)
self.$(id).set_interp_rate($interpolation)
self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
#if $lo_offset_a() != float('inf')
, lo_offset=$lo_offset_a#slurp
#end if
)
self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
#if $lo_offset_b() != float('inf')
, lo_offset=$lo_offset_b#slurp
#end if
)
self.$(id).set_gain_a($gain_a)
self.$(id).set_gain_b($gain_b)
##################################################
## Flex RF A
##################################################
#if $transmit_a.tx_enb
self.$(id).set_enable_a(True)
#end if
#if $transmit_a.auto_tr
self.$(id).set_auto_tr_a(True)
#end if
##################################################
## Flex RF B
##################################################
#if $transmit_b.tx_enb
self.$(id).set_enable_b(True)
#end if
#if $transmit_b.auto_tr
self.$(id).set_auto_tr_b(True)
#end ifset_interp_rate($interpolation)set_frequency_a($frequency_a#slurp
#if $lo_offset_a() != float('inf')
, lo_offset=$lo_offset_a#slurp
#end if
)set_frequency_b($frequency_b#slurp
#if $lo_offset_b() != float('inf')
, lo_offset=$lo_offset_b#slurp
#end if
)set_gain_a($gain_a)set_gain_b($gain_b)Input TypetypeenumUnit Numberwhich0intInterpolationinterpolationintFrequency A (Hz)frequency_arealFrequency B (Hz)frequency_brealLO Offset A (Hz)lo_offset_afloat('inf')real#if $lo_offset_a() == float('inf') then 'part' else 'none'#LO Offset B (Hz)lo_offset_bfloat('inf')real#if $lo_offset_b() == float('inf') then 'part' else 'none'#Gain A (dB)gain_a0realGain B (dB)gain_b0realTransmit Atransmit_aenum#if $transmit_a.tx_enb then 'none' else 'part'#Transmit Btransmit_benum#if $transmit_b.tx_enb then 'none' else 'part'#Ain$typeBin$type
The USRP sink inputs 128 Megasamples per second / interpolation.
Input amplitude should be between 0 and 32767.
Flex RF boards only: The "Transmit Setting" must be configured. \
When set to "Enable" the transmitter is always on. \
When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.