discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Set a command line parameter value from config file -


From: Michael Matthews
Subject: [Discuss-gnuradio] Set a command line parameter value from config file --OR-- override a "variable config" with a command line parameter
Date: Sat, 18 Jun 2016 22:20:40 -0700

The following seems like a fundamental run-time requirement, but I find no discussion in any GR forum or documentation:

1. A GR block references parameter "frequency", which is set by command line switch --freq defined in a "parameter" block.
2. In the absence of command line input --freq, I wish to set the parameter from config file similar to the "variable config" block.

Alternate approach:
1. A GR block references variable "frequency", which is set from config file via "variable config" block.
2. In the presence of command line input "--freq", I wish to override this variable.

I cannot use a "variable config" as a parameter default, nor can I use a command line parameter as a "variable config" default. What am I missing?

I use standard GR blocks, which I prefer not rewrite to handle config file input or multiple parameter/variable inputs.

Thank you,
-Mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]