When including a hier block in a custom Python application, is there
any way to retrieve a reference to the pad source/sink with it’s
label?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Vanush,
I don’t really understand your question. Could you rephrase/elaborate?
Also, what would you want to do with that reference?
Greetings,
Marcus
On 15.02.2014 04:50, Vanush V. wrote:
When including a hier block in a custom Python application, is
there any way to retrieve a reference to the pad source/sink with
it’s label?_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS/xijAAoJEAFxB7BbsDrLNRoH/39n5dNFX6o8CuhCcOCcNobY
XvCOMkMErWfgUyogQpXcRe4b6zazYsv62mGLQvdIFe7ZftVgLfq118u9QbydJcse
tkDAEu9eM1IuwpGimPSbVI5zKuatonbrdL2cPZSeU7dQRYyku2Vj3T/XKUOvJkfJ
njYFs7WwIKhAWYWTfXmLJpq0a4qCsdln9LdNuK5SdljIPZtyAVYOk9NL0hPGSvg+
nH9OJJAxcdVy9PejBMwwVQxMwqRXw/UlCKGDwHhkXzhKmBjmt0uN68WHUumpiH3B
gDfXurmD7rmeAvIT4CMmWIuX1p8o6Z7TNO8aEfDeaHfTAGaNJ5G077LoxytOOI0=
=PJhi
-----END PGP SIGNATURE-----
The port labels (for stream ports, for message ports it’s different) are
a concept that only exists in the context of GRC, so you can’t really
access them from within a python application.
Suggestion: implement a get_port_descriptor(self, port_number) method,
that returns a string describing that port.
Greetings,
Marcus
On 15.08.2014 16:33, Vanush V. wrote:
I have a custom application which consists of a top block with an inter
changeable hier block as the guts. It is then possible to dynamically
alter
I have a custom application which consists of a top block with an inter
changeable hier block as the guts. It is then possible to dynamically
alter
the final, “real” sink that the Pad Sink connects to. I can discern the
IO
type of the pad sink from the signature of the hier block, but it would
be
good if I could describe it in a user friendly way, e.g., this output
will
be the “FFT”, this output will be some time series data and so on.
Unfortunately, it doesn’t look like the label is stored in Python.