|
From: | Kevin |
Subject: | Re: [Discuss-gnuradio] About setting the GRC block properties. |
Date: | Fri, 20 Sep 2013 13:45:46 -0500 |
Using Volk machine: sse4_1_64_orc
Traceback (most recent call last):
File "/home/TX-test/top_block.py", line 106, in <module>
tb = top_block()
File "/home/TX-test/top_block.py", line 59, in __init__
self.digital_ofdm_carrier_allocator_cvc_1 = digital.ofdm_carrier_allocator_cvc(fft_len, (-30,-29,-28, -27, -26, -25, -24, -23, -22, -21, -20, -19, -18, -17, -16, -15, -14, -13, -12, -11, -10, -9, -8 , -7, -6, -5, -4, -3, -2, -1,1,2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,22,23,24,25,26,27,28,29, 30,31),(-30,-29,-28, -27, -26, -25, -24, -23, -22, -21, -20, -19, -18, -17, -16, -15, -14, -13, -12, -11, -10, -9, -8 , -7, -6, -5, -4, -3, -2, -1,1,2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,22,23,24,25,26,27,28,29, 30,31), ((-31),(-31)), ((1),(1j)), (0,0), "packet_len")
File "/usr/local/lib/python2.7/dist-packages/gnuradio/digital/digital_swig.py", line 4268, in make
return _digital_swig.ofdm_carrier_allocator_cvc_make(*args, **kwargs)
TypeError: in method 'ofdm_carrier_allocator_cvc_make', argument 2 of type 'std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &'
On Tue, Sep 17, 2013 at 02:50:33PM -0500, Kevin wrote:I think you just need brackets around the carrier allocation table.
> self.digital_ofdm_carrier_allocator_cvc_1 =
> digital.ofdm_carrier_allocator_cvc(fft_len, (-30,-29,-28, -27, -26, -25, -24,
> -23, -22, -21, -20, -19, -18, -17, -16, -15, -14, -13, -12, -11, -10, -9, -8 ,
> -7, -6, -5, -4, -3, -2, -1,1,2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
> 16, 17, 18, 19, 20, 21,22,23,24,25,26,27,28,29, 30,31),(-30,-29,-28, -27, -26,
> -25, -24, -23, -22, -21, -20, -19, -18, -17, -16, -15, -14, -13, -12, -11, -10,
> -9, -8 , -7, -6, -5, -4, -3, -2, -1,1,2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
> 14, 15, 16, 17, 18, 19, 20, 21,22,23,24,25,26,27,28,29, 30,31), ((-31),(-31)),
> ((1),(1j)), (0,0), "packet_len")
Also, use Python's range() to make stuff more readable.
> File "/usr/local/lib/python2.7/dist-packages/gnuradio/digital/
> digital_swig.py", line 4268, in make
>
> return _digital_swig.ofdm_carrier_allocator_cvc_make(*args, **kwargs)
>
> TypeError: in method 'ofdm_carrier_allocator_cvc_make', argument 2 of type
> 'std::vector< std::vector< int,std::allocator< int > >,std::allocator<
> std::vector< int,std::allocator< int > > > > const &'
>
> I think I set something wrong on this block, is there any place which containYeah, of course: http://gnuradio.org/doc/doxygen/group__ofdm__blk.html
> all the documentation about how to set the parameters?
It's in the manual.
This is unclear. Perhaps you can explain what you're trying to do?
> also, I am confused on the "Virtual source" block, it shows "pre-ofdm"
>
> how can I create and make this?
MB
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |