discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Rate of uhd_source


From: Loic Danceg
Subject: [Discuss-gnuradio] Rate of uhd_source
Date: Mon, 7 May 2012 10:50:18 -0300

Hi everybody,

I try to use the function uhd.usrp_source.

It works well with the default rate

        parser.add_option("-s", "--samp-rate", type="eng_float", default=1e6,
                          help="set sample rate (bandwidth) [default=%default]")


But i would like to have a better rate (1e9), and if i change that, it didn't works.
Someone know why?

Thank you a lot!

        self.u = uhd.usrp_source(device_addr=options.args,
                                 stream_args=uhd.stream_args('fc32'))

        # Set the subdevice spec
        if(options.spec):
            self.u.set_subdev_spec(options.spec, 0)

        self.u.set_samp_rate(options.samp_rate)

reply via email to

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