Hallo Sema,


I believe the function you are looking for is called set_center_freq, when 
using the gnuradio interface to the USRP. So it should be:



usrp = uhd.usrp_source(device_addr = addr, io_type = 
uhd.io_type.COMPLEX_FLOAT32, num_channels = 1)

usrp.set_center_freq(1.03e9, 0) # Passing the channel as an argument is 
optional



Regards



Andreas



Von: discuss-gnuradio-bounces+andreas.schantin=uni-siegen...@gnu.org 
[mailto:discuss-gnuradio-bounces+andreas.schantin=uni-siegen...@gnu.org] Im 
Auftrag von s k
Gesendet: Donnerstag, 20. Juni 2013 08:59
An: discuss-gnuradio@gnu.org
Betreff: [Discuss-gnuradio] Setting Intermediate Frequency in Python



I am using this code to set an intermediate frequency in Python platform:



usrp = uhd.usrp_source(device_addr = addr, io_type = 
uhd.io_type.COMPLEX_FLOAT32, num_channels = 1)

usrp.set_rx_freq (0, 1.03e9)



but I am getting an error as:



AttributeError: 'uhd_usrp_source_sptr' object has no attribute 'set_rx_freq'



But i saw this in some USRP documents. Is this an old and out of use code? How 
can I set the IF.



(My purpouse of using IF is cancelling the unreal center peak. 
http://lists.gnu.org/archive/html/discuss-gnuradio/2012-08/msg00032.html)



Sema

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to