discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] GMSK Demodulator -- Assertion 'imu>=0" failed.


From: Fasika Alemayehu
Subject: Re: [Discuss-gnuradio] GMSK Demodulator -- Assertion 'imu>=0" failed.
Date: Thu, 7 Feb 2008 02:16:07 -0800 (PST)

Thanks , Now its working fine.

Fasika

Eric Blossom <address@hidden> wrote:
On Tue, Feb 05, 2008 at 12:21:37AM -0800, Fasika Alemayehu wrote:
> I am using GNU radio 3.1.1 but I have been using the block blks2. Now I am using blks2impl and the error is gone. But I am now facing a new problem.
> ----------------------------------------------------------------------------------------------------------------------
> "/usr/local/lib/python2.5/site-packages/gnuradio/gr/basic_flow_graph.py", line 84, in coerce_endpoint
> raise ValueError, "Not coercible to endpoint: %s" % (x,)
> ValueError: Not coercible to endpoint:
> ------------------------------------------------------------------------------------------------------------------

You can't mix flow_graph and blk2. You should be subclassing
gr.top_block, not gr.flow_graph

> Here is the code:
>
> from gnuradio import gr
> from gnuradio.blks2impl import gmsk
> from optparse import OptionParser
> from gnuradio.eng_option import eng_option
> import struct
>
> class graph(gr.flow_graph):
>
> def __init__(self):
> gr.flow_graph.__init__(self)
>
> filename = '/home/fasika/Desktop/Binary'
> outputfilename = "demod"
>
> self.src = "" filename)
> demod = gmsk.gmsk_demod()
> self.dst = gr.file_sink(gr.sizeof_char, outputfilename)
> self.connect(self.src, demod, self.dst)
>
> if __name__ == '__main__':
> try:
> graph().run()
> except KeyboardInterrupt:
> pass
>

Eric


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
reply via email to

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