discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] GRC created flowgraphs: calling methods created w


From: Josh Blum
Subject: Re: [Discuss-gnuradio] GRC created flowgraphs: calling methods created within the top_block from my own imported code
Date: Fri, 25 Jun 2010 11:07:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

what you can do is pass a string representing the name of your variable; the block wrapper template can expand that to self.set_$(var), but you will never get grc to reference the methods of blocks and classes at edit time.

-Josh

On 06/25/2010 10:35 AM, Marcus D. Leech wrote:
The subject line describes what I want to do.

I want to be able to call methods created within the GRC-created code
from my own imported functions.

For example, if the GRC created flowgraph created a method called
set_foonly(), I'd like to be able to
   call set_foonly() from within my own imported code.  But if I try to
pass "self", GRC complains that it
   isn't defined (which is true--"self" doesn't exist until runtime).

Any clueage?





reply via email to

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