[Discuss-gnuradio] AttributeError: uhd module object has no attribute 'stream_cmd'

2011-11-07 Thread Yan Nie
Dear all, I am using self.stream_cmd = uhd.stream_cmd() in Python to define how the devices send samples to the host, though got an AttributeError: 'module' object has no attribute 'stream_cmd'. I checked the definition of stream_cmd, which is an attribute of uhd and similar as clock_config. I

Re: [Discuss-gnuradio] AttributeError: uhd module object has no attribute 'stream_cmd'

2011-11-07 Thread Josh Blum
On 11/07/2011 09:16 AM, Yan Nie wrote: Dear all, I am using self.stream_cmd = uhd.stream_cmd() in Python to define how the devices send samples to the host, though got an AttributeError: 'module' object has no attribute 'stream_cmd'. I checked the definition of stream_cmd, which is an

Re: [Discuss-gnuradio] AttributeError: uhd module object has no attribute 'stream_cmd'

2011-11-07 Thread Yan Nie
Really appreciate your answer, Josh. I am wondering how to control data streaming from devices to host in Python, if the stream command issuing approaching cannot work in Python? What I am trying to do is detecting pps pulse then 2ms later start receiving data from USRP N200. The received data