discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Benjamin Lonske
Subject: [Discuss-gnuradio] Costas parameter in DPSK2 grc block not in .py?
Date: Mon, 18 Oct 2010 17:06:29 -0400

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):


reply via email to

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