discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Not coercible to endpoint: %s" % (x,)


From: Richard Jaeger
Subject: [Discuss-gnuradio] Not coercible to endpoint: %s" % (x,)
Date: Sat, 24 May 2008 11:02:53 -0500

I'm trying to modify some code from the multi_fft.py example file and don't understand what an error message is trying to tell me. 
I've searched with little success.

The original works, but anything I've tried to do (e.g. am demodulation, audio output, resampling) fails with a similar "not coercible to endpoint" message.

Original code segment:

for i in range(nchan):
            scope = fftsink.fft_sink_c(self, panel, sample_rate=input_rate/sw_decim,
                                       title="Input %d" % (i,),
                                       ref_level=80, y_per_div=20)
            vbox.Add(scope.win, 10, wx.EXPAND)

            if options.filter:
                chan_filt = gr.fir_filter_ccf(sw_decim, chan_filt_coeffs)
self.connect((di, i), chan_filt, scope)
            else:
                self.connect((di, i), scope)

Modified segment:

for i in range(nchan):
            scope = fftsink.fft_sink_c(self, panel, sample_rate=input_rate/sw_decim,
                                       title="Input %d" % (i,),
                                       ref_level=80, y_per_div=20)
            vbox.Add(scope.win, 10, wx.EXPAND)

    rr = blks2.rational_resampler_ccf(3, 2)

            if options.filter:
                chan_filt = gr.fir_filter_ccf(sw_decim, chan_filt_coeffs)
self.connect((di, i), chan_filt, rr, scope)
            else:
                self.connect((di, i), scope)

# raise ValueError, "Not coercible to endpoint: %s" % (x,)
#ValueError: Not coercible to endpoint: <gnuradio.blks2impl.rational_resampler.rational_resampler_ccf object at #0x8d94aac>

Dick...


reply via email to

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