Friday, December 31, 2010

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

> 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

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

No comments:

Post a Comment