# Can we use any sampling rate in tunnel.py or benchmark\_tx.py

**URL:** <https://www.ruby-forum.com/t/can-we-use-any-sampling-rate-in-tunnel-py-or-benchmark-tx-py/168042>\
**Category:** GNU Radio\
**Created:** [May 15, 2009, 8:33am UTC](https://www.ruby-forum.com/t/can-we-use-any-sampling-rate-in-tunnel-py-or-benchmark-tx-py/168042 "2009-05-15T08:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mir\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@Mir\_A](https://www.ruby-forum.com/u/Mir_A)\
**Post date:** [May 15, 2009, 8:33am UTC](https://www.ruby-forum.com/t/can-we-use-any-sampling-rate-in-tunnel-py-or-benchmark-tx-py/168042/1 "2009-05-15T08:33:19Z")

</div>

Hi friends,

This question may sound stupid but I cannot really know if I am thinking  
right or wrong.

Can I set the sampling rate of tunnel or benchmark\_tx to be anything (of  
course to those supported by the system) as I think as far as the data  
rate  
of USB is maintained I should be able to do that. Isn’t it?

If yes, then can I just use the “-S samplingrate” option while running  
the  
program or is there anything more that I need to consider.

Thanks,  
Ali

---

<div class="post-metadata">

**Author:** ![Mir\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@Mir\_A](https://www.ruby-forum.com/u/Mir_A)\
**Post date:** [May 15, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/can-we-use-any-sampling-rate-in-tunnel-py-or-benchmark-tx-py/168042/2 "2009-05-15T15:21:59Z")

</div>

> If yes, then can I just use the “-S samplingrate” option while running the  
> program or is there anything more that I need to consider.

benchmark\_\*.py files use an included set of functions called  
‘pick\_bitrate’ that will attempt to automatically decide correct  
parameters given the ones you specify. If you tell it to use a  
certain number of samples per symbol it will automatically attempt to  
adjust the other parameters (mainly interpolation/decimation) to make  
it work.

Please see pick\_bitrate.py in the same folder for more information.

Jason
