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

2010-06-30 Thread Zohair
Hi Josh, Thanks for replying. I tried what you told me to do. I added %include and maked the directory. However, I receive this error; usrp2.cc: In function ‘PyObject* _wrap_usrp2_start_rx_streaming(PyObject*, PyObject*, PyObject*)’: usrp2.cc:7970: error: ‘time_spec_t’ was not declared in this

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

2010-06-29 Thread Josh Blum
Zohair, You can check what is in the module like so: python -c "from gnuradio import usrp2; print dir(usrp2)" ['MC_PROVIDE_CLK_TO_MIMO', 'MC_WE_DONT_LOCK', 'MC_WE_LOCK_TO_MIMO', 'MC_WE_LOCK_TO_SMA', 'SwigPyIterator', 'SwigPyIterator_swigregister', '_MC_MIMO_CLK_INPUT', '_MC_WE_LOCK', '__adc_ra

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

2010-06-29 Thread Zohair
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 tb = top_block() File "/media/ZOHAIR/top_block.py", line 35, in __init__ zeroise=usrp2.time_spec_t

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

2010-06-29 Thread Zohair
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 6