On 06/14/2016 12:13 PM, Richard Bell wrote:
> Martin,
>
> If I create a USRP object
>
> self.usrp = uhd.usrp_sink(device_addr=options.args,
> stream_args=uhd.stream_args('fc32'))
>
> and initialize the USRP center frequency to 900e6
>
> self.usrp.set_center_freq(900e6)
>
> and then do
>
> tr = uhd.tune_request(901e6, 1e3)
>
> followed by
>
> uhd.usrp_sink.get_center_freq()
>
> it returns the original center freq of 900e6. My question is what is the
> tune_request doing?
It's creating an object of type 'tune_request_t'. That's what the
argument type for set_center_freq() is, only that function will also
work with a double (and then create a tune_request for you).
I'm guessing you meant:
tr = uhd.tune_request(901e6, 1e3)
self.usrp.set_center_freq(tr)
M
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio