Hi,

I would like to write a source block using a GRC 'misc Python block' which reads text from 'input' and generates a vector with a variable number of 1's and 0's depending on the text. My problem is determining how to address the output vector to store/append the values. Can this even be done in Python? My attempts to create a general block using the GRC 'misc Python block' have failed because it doesn't recognize the "general_work()" method.

So, my questions are:
1) Can I append a value to output_items[0] using numpy? Wouldn't that create another array? 2) Can I use a GRC 'misc Python block' at all, or must I create an Out Of Tree block?

I haven't found any of the GR tutorials which address this issue.

Any help or direction will be appreciated greatly!
--
Barry Duggan

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to