On Fri, Sep 26, 2008 at 06:40:29PM -0700, 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
No need for all of that, just call myblock.set_k(new_value) while it's running. Eric _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
