Hi Nigel,

the problem is that these variables are very much a GRC construct, not
really GNU Radio. So, if you want something that you can update
dynamically, I'd rather recommend implementing message passing/handling
(like the USRP source, for example, which has such an input port, grey
in GRC), so you can send messages from any block (or really, any piece
of code) to your block.

Indeed, if you'd really like to have something like a GUI slider that
changes a parameter of your block, you just define a <callback> element
in your block XML; see the gr::blocks::head block XML as an example[1],
where you can define a callback for the number of items after which to stop.
Basically, it's just <callback>function($changed_parameter)</callback>
at the right position.

Best regards,
Marcus

[1]
https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_head.xml#L12

On 01/31/2016 03:21 PM, Nigel Steed wrote:
>
> Hi,
>
>  
>
> Can anyone help point me in the right direction for implementing a
> dynamic variable as a parameter within my own OOT module. For example,
> the same way UHD Source RF Frequency parameter works which you can
> then adjust at runtime.
>
>  
>
> *Thanks,*
>
> * *
>
> *Nigel*
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to