Import block

Hi,

I am a new user of GNURadio and I am interested in use the Import block,
to
import the PSK.PY file, according to a tutorial that I am reading.

The problem is that file doesn’ t exists in the file sytem of my
GNURADIO.
When I try to paste it (after download the file from the page of
GNURadio),
the block still not work because the Gnuradio doesn’t catch the file.
(with
others file on the same folder it works fine).

Could someone help me? What I have to do?

Thanks !
Regards,

Fernando L. Rodríguez Brizuela -

Fernando,

Set the PYTHONPATH environment variable to include the location of the
file you want to import, then re-run gnuradio-companion (or the
generated Python file). In bash:

export PYTHONPATH=$PYTHONPATH:/some/other/directory

Then you can put ‘import psk’ in an Import block.

  • Jeff

On 10/20/2014 03:42 PM, Jeff L. wrote:

  • Jeff
    Also, if you can say what tutorial you’re reading, it would help. If
    you’re referring to the built-in psk.py, you would use something like:

from gnuradio.digital import psk

Maybe the tutorial is old and you’re using a newer version of GNU Radio?

  • Jeff