See the attached where I used a function probe to automatically step through frequencies. Same method should be do-able for gain. (Note that I liberally borrowed from several methods I found on the interweb to build this flow...and I don't particularly understand every block.)
From: Tellrell White <address@hidden> To: address@hidden Sent: Wednesday, June 21, 2017 10:28 AM Subject: [Discuss-gnuradio] Changing transmit gain
Hello Guys I have a flowgraph attached where I'm trying to generate BER curves for different transmit gain values. Right now, I have gui slider that allows me to adjust the gain values, however, I would like to know if it's possible to have the gain values adjust automatically by changing the python script for the flowgraph. If so, I would appreciate any ideas or examples on how to do this.