|
From: | Mark Arlinghaus |
Subject: | Re: [Discuss-gnuradio] Load Preset parameters in block |
Date: | Mon, 20 Jun 2016 19:17:08 +0000 |
Hi Marcus,
Thank you for your quick response. Sorry I wasn't clear. I'm actually talking about GRC construction. Once the code is running the parameters won't need to be changed. If we need to change the parameters, stopping the flowgraph is acceptable. It's
really just meant to make the block slightly easier/faster to set up by the user. I'm hoping that this makes the solution simpler!?
Mark
From: Discuss-gnuradio [discuss-gnuradio-bounces+address@hidden on behalf of Marcus D. Leech address@hidden
Sent: Monday, June 20, 2016 3:09 PM To: address@hidden Subject: Re: [Discuss-gnuradio] Load Preset parameters in block On 06/20/2016 02:15 PM, Mark Arlinghaus wrote:
It's not clear whether you're talking about *runtime* or during GRC construction. For runtime, I'd write a little Python module that contains a function for each parameter: setter_function(configfilename, command-line-parameter, widget-control-value) You then have logic in the function to determine the priority of what gets returned: config-->command-line-->widget-control-value I've done that in the past. |
[Prev in Thread] | Current Thread | [Next in Thread] |