discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] inserting code into top_block.py


From: Vanush Vaswani
Subject: Re: [Discuss-gnuradio] inserting code into top_block.py
Date: Wed, 24 Sep 2014 09:52:37 +1000

Shouldn't he "cut" the code?

On Wed, Sep 24, 2014 at 5:53 AM, Jeff Long <address@hidden> wrote:
> The most straightforward way is to make a small Python program that calls
> the class generated by GRC. Copy the autogenerated code after
>
> if __name__ == '__main__'
>
> into another file, and insert your logic before the tb.start() line.
>
> - Jeff
>
>
> On 09/23/2014 03:14 PM, Martin Braun wrote:
>>
>> You might be able to trick the 'Variable' block into doing what you want.
>>
>> M
>>
>> On 23.09.2014 12:01, Ryan Marlow wrote:
>>>
>>> Hey All,
>>> I'm trying to figure out if what I want to do is possible in GNU Radio
>>> Companion or if there's a better way to achieve this functionality.
>>> I have some code that I want to execute after all the blocks and
>>> connections have been initialized in the top_block init()but before the
>>> tb.Start(). Is there some way I can create a custom block that inserts
>>> code into top_block.py at that point or inserts the code at the end of
>>> the init()? I currently have my code running in gnuradio-runtime, but I
>>> want to have this same functionality without altering the gnuradio trunk
>>> code, hence why I'm thinking of a custom block that can insert the code
>>> where I want.
>>> Thanks,
>>> Ryan Marlow
>>>
>>> --
>>> Ryan L. Marlow
>>> Research Assistant in CCM Lab <http://ccm.ece.vt.edu>
>>> Virginia <http://www.vt.edu/> Polytechnic Institute and State University
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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