Set block parameters / variables from cmd line?


i want to run an gnuradio .py application from the command line and want
to choose parameters (like the frequency or sound level) on the command
line. So i think about if it is possible to set block parameters /
variables without graphical sliders or graphical textboxes from the
command line.


python -f frequency -s sound_level


You want a “Parameter” block, from the Variables section.

On Fri, Apr 3, 2015 at 12:51 AM, Andreas L.
[email protected] wrote:


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

GDB has a ‘break’ feature; why doesn’t it have ‘fix’ too?

If i use the parameter block with the default “ID=parameter_0” and with
“Type=Int” and type on the cmd line:

python --parameter_0 10

i get the error message: error: no such option: --parameter_0

Do i understand something wrong about the parameter block ?

Am 03.04.2015 um 09:56 schrieb Chris K.:

Hi Chris,

That’s it. Thank you very much :slight_smile:


Am 03.04.2015 um 19:50 schrieb Chris K.:

here’s an example. “python --help”

maybe run your script with --help to see what options it will accept…

On Fri, Apr 3, 2015 at 10:20 AM, Andreas L.