discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Error in python (XML file)


From: Zohair
Subject: Re: [Discuss-gnuradio] Error in python (XML file)
Date: Tue, 29 Jun 2010 04:14:30 -0700 (PDT)

I also tried this:
zeroise=usrp2.time_spec_t(0,0)
self.$(id).set_time_at_next_pps(zeroise)

and receive:
Traceback (most recent call last):
  File "/media/ZOHAIR/top_block.py", line 66, in <module>
    tb = top_block()
  File "/media/ZOHAIR/top_block.py", line 35, in __init__
    zeroise=usrp2.time_spec_t(0,0)
AttributeError: 'module' object has no attribute 'time_spec_t'

The problem in my code or in time_spec_t accessibility? What do you think? 

Thanks
Zohair


Zohair wrote:
> 
> Dear all,
> 
> I am trying to modify the USRP2 block so that the timer is reset at the
> beginning. I added this line to the make tag in the xml file:
> 
> self.$(id).set_time_at_next_pps(time_spec_t(0,0))
> 
> I receive this error:
> 
> Traceback (most recent call last):
>   File "/media/ZOHAIR/top_block.py", line 64, in <module>
>     tb = top_block()
>   File "/media/ZOHAIR/top_block.py", line 36, in __init__
>     self.usrp2_sync_source_xxxx_0.set_time_at_next_pps(time_spec_t(0,0))
> NameError: global name 'time_spec_t' is not defined
> 
> Any help or hint please? I am using GRC 3.3git-23e45f33
> 
> Cheers,
> Zoh
> 

-- 
View this message in context: 
http://old.nabble.com/Error-in-python-%28XML-file%29-tp29022268p29022492.html
Sent from the GnuRadio mailing list archive at Nabble.com.




reply via email to

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