Tuesday, April 24, 2018

[Discuss-gnuradio] vector input/output with embedded python block

Hi All,

I found this thread from 2016:

https://lists.gnu.org/archive/html/discuss-gnuradio/2016-10/msg00087.html

that discusses the issue I am having, but when I tried to reply to the
thread I got a responding email that said my email didn't go through.


The thread discusses how support for vector input / output wasn't
included in the Embedded Python Block and I was wondering if this was
something that was ever, or will ever be, added to the GRC mainline? 
The thread includes a link
(https://github.com/skoslowski/gnuradio/tree/epy_vectors) from Sebastian
where he says that if you try that version it should have the added vlen
support, but I didn't build gnuradio from source on my computer, I
installed via "sudo apt install gnuradio".


Basically if I define my embedded python block to have vector input and
output in the python code...

i.e.

in_sig = [(np.complex64, 128)],

out_sig = [(np.complex64, 128)]


then I get this error:

Param - Code(_source_code):

    Invalid conversion specification


But the same code works fine in an OOT module (assuming the proper xml
code too).

Is there an extra step that I am missing when using vector input/output
and the embedded python block?  Or is this an issue other people have had?

Thanks,

Jimmy


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment