discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Set a command line parameter value from config fi


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Set a command line parameter value from config file --OR-- override a "variable config" with a command line parameter
Date: Sun, 19 Jun 2016 10:02:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Idea to implement your alternative approach: Add a "Variable" block, which has the value

value_from_parameter if not value_from_parameter == default_value_for_that else value_from_config


Would that work for you?
On 06/19/2016 07:20 AM, Michael Matthews wrote:
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




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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