discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Dynamically changing parameters of a block


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Dynamically changing parameters of a block
Date: Fri, 26 Sep 2008 23:05:43 -0400
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

http://gnuradio.org/doc/doxygen/classgr__multiply__const__ff.html

The block has a method called set_k

just do my_block.set_k(new_constant)

-Josh

Karthik Vijayraghavan wrote:
Suppose I have myblock = gr.multiply_const_ff(var_value) sitting
somewhere in my flowgraph. I want the user to be able to change the
value of var_value by using a slider. I know how to make a slider, but
I am not able to find information on how to dynamically change the
block at runtime. One option that I can think of is to

1. Stop the flow graph
2. Disconnect the block in question with any block it may be connected to
3. Redefine the block with new parameters
4. Reconnect the block
5. Restart the flow graph

I tried the above method, but I did know how to redefine an existing
block. Do I have to somehow "destroy" or "clear" the existing block
before defining another block with the same name?

Karthik


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




reply via email to

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