Jump to content

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


Recommended Posts

76110646-27e6bc00-5fdf-11ea-82f9-afb157d

76110719-4e0c5c00-5fdf-11ea-9391-0a34202

76110686-3df47c80-5fdf-11ea-90f6-17221eb

 

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>
    main()
  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:
76110759-63818600-5fdf-11ea-91d9-3d12a5c

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:

76110879-975cab80-5fdf-11ea-8dfe-695f59e


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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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