discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Using the UHD API for Python Programming
Date: Mon, 31 Aug 2015 12:26:45 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 08/31/2015 12:04 PM, Tibisay Sanchez wrote:
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

It's uhd_time_spec_t,  not uhd_time_spect_t





reply via email to

[Prev in Thread] Current Thread [Next in Thread]