On 04/26/2010 09:05 PM, Josh Blum wrote: > It would be nice. Though you can get away without the ability to embed > custom functions. Actually, the import was the answer to that. > > With the current framework, I usually suggest encapsulating logic into > python modules or hier2_blocks, that grc will call into. Post > processing the output is a bad idea. > > Id love to see multi-line editable parameters. And to go with that a > function block of some sort. Howabout a block that imports arbitrary > python code from a file and writes it into the generated code? > Although thats only one step away from the above mentioned method. > > Thanks, > -Josh Hmmmm, I spoze I could use an import of my own module, and then have a variable call an Init routine that starts the timer. Will have to cogitate.
I agree that a block that causes a wholesale copy is only slightly-less bletchiferous than post-processing the GRC generated code. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio