Monday, August 31, 2015

Re: [Discuss-gnuradio] Using the UHD API for Python Programming

Hi people.

I'm using the same code to synchronize channel phase. I'm using MIMO
cable, and the next lines are used to do that

self.uhd_usrp_source_0.set_clock_source("mimo", 1)
self.uhd_usrp_source_0.set_time_source("mimo", 1)
self.uhd_usrp_source_0.set_samp_rate(samp_rate)
self.uhd_usrp_source_0.set_center_freq(1.2e9, 0)
self.uhd_usrp_source_0.set_gain(10, 0)
self.uhd_usrp_source_0.set_antenna("RX2", 0)
self.uhd_usrp_source_0.set_center_freq(1.2e9, 1)
self.uhd_usrp_source_0.set_gain(10, 1)
self.uhd_usrp_source_0.set_antenna("RX2", 1)

To synch the phase I used

self.cmd_time = self.uhd_usrp_source_0.uhd_time_spect_t(.1)
self.uhd_usrp_source_0.set_command_time(self.cmd_time)
self.uhd_usrp_source_0.clear_command_time()

When I run the python file, I have an error, it says: " File
"sync_mimo_nophase_grc.py", line 73, in __init__
self.cmd_time = self.uhd_usrp_source_0.uhd_time_spect_t(.1)
AttributeError: 'usrp_source_sptr' object has no attribute
'uhd_time_spect_t'"

Anyone can help me with my problem.

Thanks

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment