|
From: | Barry Duggan |
Subject: | [Discuss-gnuradio] Create a general block using a GRC 'misc Python block' |
Date: | Wed, 21 Aug 2019 19:43:35 -0400 |
User-agent: | Roundcube Webmail/1.3.8 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |