discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] USRP N210 10MHz reference input


From: Josh Blum
Subject: Re: [Discuss-gnuradio] USRP N210 10MHz reference input
Date: Fri, 31 Dec 2010 11:10:11 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

> The problem is this: the 'Ref Clock' switch in the 'UHD Single USRP Source'
> doesn't appear to function. Switching it to External does seem to do
> anything. The GRC code is the same no matter whether I set the ref clock to
> int or ext (I checked the python code with diff).
> 

Works for me, here is my diff when i switch the ref to External and
click generate:

>                       io_type=uhd.io_type_t.COMPLEX_FLOAT32,
>                       num_channels=1,
>               )
> +             _clk_cfg = uhd.clock_config_t()
> +             _clk_cfg.ref_source = uhd.clock_config_t.REF_SMA
> +             _clk_cfg.pps_source = uhd.clock_config_t.PPS_SMA
> +             _clk_cfg.pps_polarity = uhd.clock_config_t.PPS_POS
> +             self.uhd_single_usrp_source_0.set_clock_config(_clk_cfg);
>               self.uhd_single_usrp_source_0.set_samp_rate(samp_rate)
>               self.uhd_single_usrp_source_0.set_center_freq(rx_freq, 0)
>               self.uhd_single_usrp_source_0.set_gain(0, 0)

-Josh



reply via email to

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