discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Calling functions from flowgraph ?


From: Activecat
Subject: Re: [Discuss-gnuradio] Calling functions from flowgraph ?
Date: Thu, 5 Jun 2014 22:50:18 +0800


On Thu, Jun 5, 2014 at 5:07 PM, Abouda Yassine <address@hidden> wrote:
Hi everybody,

well,I had a python script which works with gnuradio and outputs results on the terminal.To make it more visual,I made all the blocks on the gnuradio-comapnion but now I would like to output the results on the terminal which means I have to call the main loop in the python script from the flowgraph to get the job done.In other words,when I hit the button execute the flowgraph,I want to see the porgram running.I hope you understood what I'm trying to do.So,how can I do that?


I think I understand your requirements.  You just need to perform these steps:

Step 1:  
In GRC (gnuradio-companion), open the flowgraph and then press F5 (or, click menu Build --> Generate)
This will generate a new file: "top_block.py"
The file is located at the same directory where your *.grc file is located.

Step 2: 
Open a terminal, cd to directory of the top_block.py, execute it:
  python top_block.py

With this you will see all python outputs at this terminal.

Is this exactly what you asking for..?

P/S:  In fact Marcus Muller had already answered your question in above message.

reply via email to

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