On 03/03/2017 12:56 PM,
josehua...@gmail.com wrote:
> Hello once again , I'm working in a AM mod and demod just buy using theory
> and avoid the use of BLOCKS demod ( for instance ) of GNU Radio . the
> problem is that i need a math operator block which is not consider in
> GNURADIo blocks . I refer to SQRT ( square root ) . I want a input that any
> time pass for this block calculate the square of the inf that is passing in
> a determinated time . I also see that there's a block transcendental . This
> block permitted you to implements various transcendental functions found in
> the cmath library, including: exp, log, log10, sqrt, acos, asin, atan, cos,
> sin, tan, acosh, asinh, atanh, cosh, sinh and tanh. Any way i don't
> understand very well how it works . in the other hand , i'm developing a
I can help with the installer, but if you have a specific question about
gnuradio blocks, I think the gnuradio mailing list may be more helpful.
For AM demodulation, you can do something like low pass filter the
magnitude of the signal. Gr has blocks for both of those things.
> programm in Python but then i want to import in gnuradio . from gnuradio
> import gr from gnuradio import blocks from gnuradio import qtgui from
> gnuradio import gru from gnuradio import usrp import math def
> calcula_raiz(num): raiz = math.sqrt(num) return raiz The problem of this
> code is how to take this to a gnuradio enviroment. I was wondering if you
> can help me with that . I really appreciate it ! Thank you
>
Not sure I understand from the formatting. Are you able to run a python
script? Something like this should work. The gnuradio python modules
should be in the PYTHONPATH already
c:\python27\python.exe the_script.py
-josh