discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] adding python block to gnuradio


From: Nemanja Savic
Subject: Re: [Discuss-gnuradio] adding python block to gnuradio
Date: Thu, 14 Mar 2013 10:37:27 +0100

In the terminal transcript you provided, you created an block without a name, and after that you created a python block. One of the errors comes from the first block. I am not sure where you have found this sequence of actions, but the only thing you should to to create a new signal processing block is to firsr, define a module, which you have done, second, add a new signal processign block (in python or C++), EDIT the files created by gr_modtool in order to implement the behaviour of your block, third: do make and make test to see whether your block really does what you wanted, make xml file for GRC and finaly do make install, and you will be able to use it.


On Thu, Mar 14, 2013 at 10:27 AM, Serhat BOYNUKALIN <address@hidden> wrote:
it is possible to add qpsk as a block to grc just using python code?


2013/3/14 Nemanja Savic <address@hidden>
You simply open that file in text editor and change the lines that cause trouble.


On Thu, Mar 14, 2013 at 10:24 AM, Nemanja Savic <address@hidden> wrote:
You simply open that file in text editor and change the lines that cause trouble.


On Thu, Mar 14, 2013 at 10:09 AM, Serhat BOYNUKALIN <address@hidden> wrote:
How should i add or replace  c++ code and python code could you explain it with an example, and i knew there is psk.py code but need to show it at the GRC as a block.



Look at those line numbers that give errors. You need to replace the
"<++ hint ++>"  with actual C++ code.

As a side note, unless you're doing something fancy there's already a
QPSK modulator/demodulator that comes with GR as a python hier_block.
It's in gr-digital/python/psk.py .

-Nathan


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




--
Nemanja Savić



--
Nemanja Savić




--
Nemanja Savić

reply via email to

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