Help with Python import

2020-03-25 Thread Gisle Vanem
Hi list. I've having troubles understanding how GnuRadio and Python 3.x in particular should be told to import stuff under '/lib/site-pages'. I have a 'PYTHONPATH' containing both: /lib/site-pages /lib/site-pages/volk_modtool etc. But yet a statement like (in '/bin/volk_modtool.py'): fro

Change Variable value from an python block or module?

2020-03-25 Thread Steffen Kiel
Hello! I have a signal source whose frequency input is referenced to a variable. Is it possible to access this variables value and set it from a python block or python module? BR, Steffen

Re: Change Variable value from an python block or module?

2020-03-25 Thread CEL
Yes, but no! So, GRC Variables are really a GRC concept, and you'd need to break multiple layers of encapsulation from within a Python block just to alter them. Really, that's possible with a simple callback function, but please don't. Instead, the appropriate way of dealing with this would be g

Sv: Change Variable value from an python block or module?

2020-03-25 Thread Steffen Kiel
Hello Marcus, alright, i will look into this whole "message" thing instead then. thanks for your quick reply. BR, Steffen Fra: Müller, Marcus (CEL) Sendt: Onsdag 25 Marts 2020 16:05 Til: steffenk...@outlook.dk; discuss-gnuradio@gnu.org Emne: Re: Change Variable

Re: Change Variable value from an python block or module?

2020-03-25 Thread Nick Foster
You know, maybe this is opening up a can of worms, but you *can* do this. A lot of blocks don't accept messages; messages aren't exactly first-class (in the sense that every block accepts them) in Gnuradio. All blocks have getters/setters to change parameters, but only a comparative few have messag

RES: Re: Change Variable value from an python block or module?

2020-03-25 Thread Artur
Hello, Taking the opportunity given by Steffen Kiel’s question, I would like to know if it is possible to increase the number of inputs and outputs of a Python block by means of Python variables. Best regards,Artur Nogueira Enviado do Email para Windows 10 De: Müller, Marcus (CEL)Enviado:quarta-fei

Re: Change Variable value from an python block or module?

2020-03-25 Thread Marcus Müller
Hi Nick, great, now I have to write this email in a witch theme. Don't you worry, we haven't had a public drowning and/or burning of design idea dissidents since I think v3.7.6.3; we usually just rat them out to their mothers. Anyways, I fully agree with you, but only if we touch all our code. L