Jump to content

GNURadio doesn't let me work with more than one sequence of bits.

Recommended Posts





I am using "Vector Source" block. As you know, it's used with a list of ints. Of course, if I try to use more than a list, so if I use a list of lists, it gives me error:

Traceback (most recent call last):
  File "/Users/user/top_block.py", line 160, in <module>
  File "/Users/user/top_block.py", line 148, in main
    tb = top_block_cls()
  File "/Users/user/top_block.py", line 90, in __init__
    self.blocks_vector_source_x_0 = blocks.vector_source_c([x for x in sequence], True, 1, [])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/blocks/blocks_swig1.py", line 1593, in make
    return _blocks_swig1.vector_source_c_make(*args, **kwargs)
TypeError: in method 'vector_source_c_make', argument 1 of type 'std::vector< gr_complex,std::allocator< gr_complex > > const &'
	>>> Done (return code 1)


I also tried with:

But it doesn't work neither (same error of before)

Obviously if I write "sequence[0]" to select only the first sequence, it works, and no errors:


So my question is, how can I use more lists with "Vector Source" block?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...