# USRP gain changing in runtime: the codes

**URL:** <https://www.ruby-forum.com/t/usrp-gain-changing-in-runtime-the-codes/252512>\
**Category:** GNU Radio\
**Created:** [May 31, 2019, 2:31pm UTC](https://www.ruby-forum.com/t/usrp-gain-changing-in-runtime-the-codes/252512 "2019-05-31T14:31:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamid\_zargari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/d9b06d/32.png) [@hamid\_zargari](https://www.ruby-forum.com/u/hamid_zargari)\
**Post date:** [May 31, 2019, 2:31pm UTC](https://www.ruby-forum.com/t/usrp-gain-changing-in-runtime-the-codes/252512/1 "2019-05-31T14:31:40Z")

</div>

Dear all,  
I am a beginner and I am searching to find a way to change the gain of rx block in USRP1, but in the run time. I want to put a loop and change the gain step by step. I am working on a tweaked software and I cannot use “Slider” block. Is there any body to help me?
