Forum: GNU Radio Dynamically set sample rate

7ee02869e420597c330013662312de13?d=identicon&s=25 Robert S. (robert_s)
on 2013-10-09 16:44
(Received via mailing list)
This might be a trivial question, but I did some searching around and
could
not find anything.  Is there any way to dynamically set the sample rate
in a
"top_block" file without stopping the program and restarting it? Say I
have
the USRP sampling at 100KHz, then after 30 seconds would it be possible
to
change the sample rate to 200KHz.  Thank you very much in advance.



--
View this message in context:
http://gnuradio.4.n7.nabble.com/Dynamically-set-sa...
Sent from the GnuRadio mailing list archive at Nabble.com.
7ee02869e420597c330013662312de13?d=identicon&s=25 Robert S. (robert_s)
on 2013-10-11 19:47
(Received via mailing list)
Does anybody have any ideas on this question?



--
View this message in context:
http://gnuradio.4.n7.nabble.com/Dynamically-set-sa...
Sent from the GnuRadio mailing list archive at Nabble.com.
3c2c8407d19f3488e9cd2a28a9732bde?d=identicon&s=25 West, Nathan (Guest)
on 2013-10-11 19:57
(Received via mailing list)
On Fri, Oct 11, 2013 at 12:36 PM, rmsrms1987 <rmsrms1987@gmail.com>
wrote:

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


http://gnuradio.org/doc/doxygen/page_uhd.html
Have you tried uhd.usrp_source.set_samp_rate()? I've never tried it in a
running flowgraph, but that sounds like what you want. Alternatively
that
same page has another solution where you create a software resampler on
your host, which you can change the resampling ratio from.
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus Leech (Guest)
on 2013-10-12 12:57
(Received via mailing list)
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.