allexj Posted March 6, 2020 Share Posted March 6, 2020 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: 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? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.