discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Unrecognized Enum


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Unrecognized Enum
Date: Thu, 17 Dec 2009 08:12:26 -0800
User-agent: Thunderbird 2.0.0.23 (X11/20090817)



from gnuradio import gr
from gnuradio import audio

class my_top_block(gr.top_block):
    def __init__(self):
        gr.top_block.__init__(self)

        sample_rate = 32000
        ampl = 0.1

        src = gr.noise_source_f(GR_GAUSSIAN,ampl)
        dst = gr.null_sink(1000)

the python imports dont work like that

use gr.GR_GAUSSIAN

if you did

from gnuradio.gr import GR_GAUSSIAN
or
from gnuradio.gr import *

then it would work


-josh




reply via email to

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