For lazy people: This is about generating hier blocks with GRC. Ed, you're doing it right already, I think. When you use that hier block somewhere, you get an input field in the hier block properties that should set the avgLength variable as available in you flowgraph. That should be all!
If it doesn't work, could you share both an example of a hier block .grc and a .grc where you use that hier block ? Best regards, Marcus On 25.07.2016 22:19, Ed Coleman wrote: > > I 'thought' that my reply would appear threaded within the discussion > I was reading > (https://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00336.html) > my apologies for any confusion > > On Mon, Jul 25, 2016 at 3:35 PM, Ed Coleman <ed.coleman...@gmail.com > <mailto:ed.coleman...@gmail.com>> wrote: > > This was a very helpful introduction to hierarchical blocks. One > thing I am unclear on is how a parameter in a hier block is > controlled via the top block. For example suppose I have a moving > average block inside my hier block and I want the number of > averages to be defined from the top block. Within the hier block > I have a parameter block with the ID 'avgLength' and the moving > average block has a length of 'avgLength' and a scale of > '1.0/avgLength'. How do I pass the value of avgLength from the > top block into the parameter of the hier block? > > Thanks in advance for any replies. > > -Ed > > > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio