discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Costas parameter in DPSK2 grc block not in .py?


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Costas parameter in DPSK2 grc block not in .py?
Date: Mon, 18 Oct 2010 14:53:30 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

diff attached

It looks like the guts of the dqpsk2 demod changed but the grc file was not updated. I vote for keeping the grc files with the python/c++ source.

-Josh

On 10/18/2010 02:06 PM, Benjamin Lonske wrote:
When I try to use the DPSK2 demod block in grc, I get the below error. The
issue seems to be that the grc block has different arguments than
dqpsk2_demod() in dqpsk2.py (see below). Am I missing something here? I am
using the gnuradio version 3.3.0.

Thanks,
Ben

===========
(GRC ERROR)
Traceback (most recent call last):
   File
"/gnuradio/gnuradio-3.3.0/gnuradio-examples/grc/usrp/usrp_rx_dpsk.py", line
211, in<module>
     tb = usrp_rx_dpsk()
   File
"/gnuradio/gnuradio-3.3.0/gnuradio-examples/grc/usrp/usrp_rx_dpsk.py", line
125, in __init__
     sync_out=True,
TypeError: __init__() got an unexpected keyword argument 'costas_alpha'

=============
(BLK2_DXPSK2_DEMOD.XML)
<block>
     <name>DPSK2 Demod</name>
     <key>blks2_dxpsk2_demod</key>
     <import>from gnuradio import blks2</import>
     <make>blks2.$(type)2_demod(
     samples_per_symbol=$samples_per_symbol,
     excess_bw=$excess_bw,
     costas_alpha=$costas_alpha,
     timing_alpha=$timing_alpha,
     timing_max_dev=$timing_max_dev,
     gray_code=$gray_code,
     verbose=$verbose,
     log=$log,
     sync_out=$sync_out,

=============
(DQPSK2.PY)
class dqpsk2_demod(gr.hier_block2):
     def __init__(self,
                  samples_per_symbol=_def_samples_per_symbol,
                  excess_bw=_def_excess_bw,
                  freq_alpha=_def_freq_alpha,
                  phase_alpha=_def_phase_alpha,
                  timing_alpha=_def_timing_alpha,
                  timing_max_dev=_def_timing_max_dev,
                  gray_code=_def_gray_code,
                  verbose=_def_verbose,
                  log=_def_log,
                  sync_out=False):




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Attachment: blks2_dxpsk2_demod.xml.diff
Description: Text Data


reply via email to

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