UHD MIMO Sourceuhd_mimo_sourceUHDfrom gnuradio import uhduhd.mimo_source($nchan, $args, uhd.io_type_t.$type.type)
self.$(id).set_samp_rate_all($samp_rate)
map(lambda x: self.$(id).set_center_freq(*x), enumerate($center_freqs))
map(lambda x: self.$(id).set_gain(*x), enumerate($gains))
#if $ants()
map(lambda x: self.$(id).set_antenna(*x), enumerate($ants))
#end ifset_samp_rate($samp_rate)map(lambda x: self.$(id).set_center_freq(*x), enumerate($center_freqs))map(lambda x: self.$(id).set_gain(*x), enumerate($gains))map(lambda x: self.$(id).set_antenna(*x), enumerate($ants))Output TypetypeenumNum Channelsnchan2intArgsargsaddr=192.168.10.2 192.168.20.2stringSamp Rate (Sps)samp_ratesamp_raterealCenter Freqs (Hz)center_freqs0, 0real_vectorGains (dB)gains0, 0real_vectorAntennasants['RX2', 'RX2']raw#if not $ants() then 'part' else 'none'#
The UHD Source Block:
Args:
Args is a delimited string used to locate UHD devices on your system. \
If left blank, the first UHD device found will be used. \
Used args to specify a specfic device. \
USRP2 Example: addr=192.168.10.2
Sample rate:
The sample rate is the number of samples per second output by this block. \
The UHD device driver will try its best to match the requested sample rate. \
If the requested rate is not possible, the UHD block will print an error at runtime.
Antenna:
For subdevices/daughterboards with only one antenna, this may be left blank. \
Otherwise, the user should specify one of the possible antenna choices. \
See the daughterboard application notes for the possible antenna choices.