It gets even better:We've launched a feature in 18.104.22.168 (and on master before that, as we do with any feature that ends up in a maintenance release) that we hope doesn't come back to bite us due to enabling unclean design. But, we must build best practices so that it doesn't go unused, either, so:
Assuming you're using GNU Radio 22.214.171.124 (or later, once we release something), you can make use of the "Python Snippets" in GRC.
Cheers, Marcus On 18/06/2020 23.17, Marcus D. Leech wrote:
On 06/18/2020 03:54 PM, jean-michel.fri...@femto-st.fr wrote:If you use "Python Module" block, you can write a lot of non-GnuRadio-esque python, import anything you want, etc, etc. No editingMy approach: * build your grc chart from GNU Radio Companion and generate the .py file * edit the py file and import pygpio * play with the RPi4 GPIO in your python script. See attached script, with a python server included in the Python scriptto control an RF switch from a GNU Octave TCP/IP client talking to the PythonTCP/IP server. I am presenting this approach to hardware control at http://jmfriedt.free.fr/sdra_radar.pdf JMof the output python required, necessarily.-- JM Friedt, FEMTO-ST Time & Frequency/SENSeOR, 26 rue de l'Epitaphe, 25000 Besancon, France June 18, 2020 9:40 PM, "Da Fy" <diver86...@gmail.com> wrote:Hi All, does anyone have an example of how to control GOIO lines on the RPi4 from within a GRCflowgraph. I’m guessing it’s an OOT module.I need to generate a signal of a few 100Hz & control GPIO lines at various points though the cycle.Alternatively, I could generate the signal & lines with external hardware & read them withGnuRadio. Tnx, Dave
Description: S/MIME Cryptographic Signature