[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] ofdm block
From: |
Viktor Ivan Rodriguez Abdala |
Subject: |
[Discuss-gnuradio] ofdm block |
Date: |
Thu, 06 Sep 2012 12:59:20 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
Hi all,
I'm looking to develop a block called dfts ofdm, based in a similar
block called ofdm mod, I change the .xml and .py to a new name called
DFTSOFDM, but I can't make it work. In GRC I have the following error:
Traceback (most recent call last):
File "/home/administrador/Simulacion/top_block.py", line 86, in <module>
tb = top_block()
File "/home/administrador/Simulacion/top_block.py", line 55, in __init__
self.Umbrella_dftsofdm_mod_0 =
grc_blks2.packet_mod_f(Umbrella.dftsofdm_mod(
AttributeError: 'module' object has no attribute 'dftsofdm_mod'
The new python file es dftsofdm.py, and I change the classes with
class dftsofdm_mod(gr.hier_block2):
class dftsofdm_demod(gr.hier_block2):
The .xml files have this changes:
Umbrella_dftsofdm_demod.xml
<name>DFTSOFDM Demod</name>
<key>Umbrella_dftsofdm_demod</key>
<category>Umbrella</category>
<import>import Umbrella</import>
<import>from grc_gnuradio import blks2 as grc_blks2</import>
<import>from gnuradio import digital</import>
<make>grc_blks2.packet_demod_$(type.fcn)(Umbrella.dftsofdm_demod(
options=grc_blks2.options(
modulation="$modulation",
fft_length=$fft_length,
occupied_tones=$occupied_tones,
cp_length=$cp_length,
snr=$snr,
log=None,
verbose=None,
),
callback=lambda ok, payload: self.$(id).recv_pkt(ok, payload),
),
)</make>
Umbrella_dftsofdm_mod.xml
<block>
<name>DFTSOFDM Mod</name>
<key>Umbrella_dftsofdm_mod</key>
<category>Umbrella</category>
<import>import Umbrella</import>
<import>from grc_gnuradio import blks2 as grc_blks2</import>
<import>from gnuradio import digital</import>
<make>grc_blks2.packet_mod_$(type.fcn)(Umbrella.dftsofdm_mod(
options=grc_blks2.options(
modulation="$modulation",
fft_length=$fft_length,
occupied_tones=$occupied_tones,
cp_length=$cp_length,
pad_for_usrp=$pad_for_usrp,
log=None,
verbose=None,
),
),
payload_length=$payload_length,
)</make>
Thanks
Ivan Rodriguez
- [Discuss-gnuradio] ofdm block,
Viktor Ivan Rodriguez Abdala <=
- Re: [Discuss-gnuradio] ofdm block, Tom Rondeau, 2012/09/07
- Re: [Discuss-gnuradio] ofdm block, Viktor Ivan Rodriguez Abdala, 2012/09/10
- Re: [Discuss-gnuradio] ofdm block, Tom Rondeau, 2012/09/12
- Re: [Discuss-gnuradio] ofdm block, abdala, 2012/09/13
- Re: [Discuss-gnuradio] ofdm block, Tom Rondeau, 2012/09/15
- Re: [Discuss-gnuradio] ofdm block, Viktor Ivan Rodriguez Abdala, 2012/09/19
- Re: [Discuss-gnuradio] ofdm block, Tom Rondeau, 2012/09/19