[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Using the UHD API for Python Programming
From: |
Tibisay Sanchez |
Subject: |
Re: [Discuss-gnuradio] Using the UHD API for Python Programming |
Date: |
Mon, 31 Aug 2015 18:04:35 +0200 |
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/.
- Re: [Discuss-gnuradio] Using the UHD API for Python Programming,
Tibisay Sanchez <=