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
On 04/26/2010 05:47 PM, Marcus D. Leech wrote:
There was a tidy way to insert *code* at certain formalized points in
the flow-graph setup, without having
to post-process the output of GRC.
For example, I want to setup a timeout function, that goes off once in a
while, to "do stuff". But that's
just an example.
We already have "variables" and "import" which have special semantics,
in terms of where they get placed
in the layout of the generated code.
Any thoughts been given to that?
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio