Instead of doing

self.u = usrp.source_c()
self.u.set_decim_rate(usrp_decim)

one can simply do

self.u = usrp.source_c(0, usrp_decim)

(usrp_decim must be an even number in the [8,256] range)

Advertisements